This example has been around forever. Needs some updating to modern code but it'll get you started.


http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzarh/apiexdelsp.htm


Roger Harman

COMMON Certified Application Developer – ILE RPG on IBM i on Power

OCEAN User Group<http://www.ocean400.org> – Vice-President, Membership (2014)




----------------------------------------
Date: Thu, 20 Nov 2014 16:31:21 -0500
Subject: How do I get a list of all spool files in an output queue
From: jyoung0950@xxxxxxxxx
To: rpg400-l@xxxxxxxxxxxx; midrange-l@xxxxxxxxxxxx

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 RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-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.