Use the OVRPRTF command before you run the query and the DLTOVR command afterwards :-
OVRPRTF FILE(QPQUPRFIL) SPLFNAME(YourName)
Right – you can’t change the name once it’s created but you can have the query create the
spoolfile with a different name using the OVRSPLF
But you haven’t told us why you want this. Perhaps it’s possible to solve your issue without changing the name.
If it’s just that you have too many things in the Queue with the same name, the wrkSplf maybe easier to use than the wrkoutq because it will only show the users work.