Question

  Asked: Apr 28 2008   1:48 PM GMT
  Asked by: Kineno16


Command to delete a user's spoolfiles


CLROUTQ, Spool files, AS/400

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...

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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 List Spooled Files API QUSLSPL. The API provides for selection based on both username and outq. From there you would simply issue DLTSPLFs from the list.

Bruce Vining
http://www.brucevining.com/

-------------------------------------------------------------------

I assume you already used 14 in front of the outq when in WRKOUTQ? 14=Clear

Jeremy L.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register