Question

  Asked: May 2 2008   2:08 PM GMT
  Asked by: Ronnieb34


Programmatically place outq on hold when empty


OUTQ, CL

Hi, I have been tasked with writing a CL program that will be run every night that releases a held Outq and allows the contents to go through then, put the outq back on hold once there are no more spool files in it. Is there an API or something I can use in a CL program that will check for an empty outq?

Thanks,

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,

If you have a writer attached to your OUTQ you could just start the writer with :-

AUTOEND(*YES *NORDYF)

This should stop the writer as soon as there are no spooled files available.

Regards,

Martin Gilbert.
  • 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