I typically avoid the stuff like WRKOUTQ to *PRINT because if IBM decides to
move something on the output, your job stops working and it takes forever to
figure out why. They did that years ago on the WRKACTJOB where they moved a
column over 1 byte.

Although I have never tried to use it, there is an API named QGYOLSPL which
allows you to retrieve this information. It has a "filter" option that
allows you to specify an outq.


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff
Young
Sent: Thursday, November 20, 2014 4:31 PM
To: RPG programming on the IBM i (AS/400 and iSeries); Midrange Systems
Technical Discussion
Subject: How do I get a list of all spool files in an output queue

I know that there are utilities on the market that do this, but if I were to
roll my own, what would I need to do?

I will most likely be doing the retrieve of the spool file name, job, job
number, job user and spool file number and then passing it to a CL to do
other things with.

TIA


Jeff Young
Sr. Programmer Analyst
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.