Command to delete a user’s spoolfiles

15 pts.
Tags:
AS/400
OUTQ
Spool files
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...

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Tpinky
    If you have TAATOOL you can use a command called DLTOLDSPLF and just set the days to retain to 0 (Zero).
    4,165 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following