15 pts.
 Command to delete a user’s spoolfiles
Is there a way to delete all the spoolfile entries in an outq of a particular with one command? I know about the CLROUTQ command but it seems it can't be run for a particular user only...

Software/Hardware used:
ASKED: April 28, 2008  1:48 PM
UPDATED: May 22, 2008  8:50 PM

Answer Wiki:
Hi, Try this :- DLTSPLF FILE(*SELECT) SELECT(username) Should delete all the spooled files for "username". Regards, Martin Gilbert. ------------------------------------------------------------------- I am not aware of such a command. The referenced DLTSPLF comes close, but it is not fully outq sensitive (it can handle some specific cases of an outq but not the general case of any outq). It wouldn't be hard to write such a command though using the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/QUSLSPL.htm">List Spooled Files API QUSLSPL</a>. The API provides for selection based on both username and outq. From there you would simply issue DLTSPLFs from the list. Bruce Vining <a href="http://www.brucevining.com/">http://www.brucevining.com/</a> ------------------------------------------------------------------- I assume you already used 14 in front of the outq when in WRKOUTQ? 14=Clear Jeremy L.
Last Wiki Answer Submitted:  April 29, 2008  8:58 pm  by  bvining   6,055 pts.
All Answer Wiki Contributors:  bvining   6,055 pts. , Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

If you have TAATOOL you can use a command called DLTOLDSPLF and just set the days to retain to 0 (Zero).

 4,165 pts.