Looking for the initial library list on a job waiting in the JOBQ may not be
useful. A job on the JOBQ does not have to use the library list on the JOBD.
The JOBD may use the system library list or as in many instances, when a
user sign on, his initial program may build the library list. Also when
submitting a job to batch, by IBM default (unless changed), the library list
of the job submitting the job is used.

Be careful of all the options.

Darryl Freinkel
Telephone: 770.321.8562

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Rich
Sent: Thursday, June 6, 2024 1:17 AM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Retrieving Initial LIBL from a Job in a JOBQ

I have found several ways of getting the library list of active jobs (API:
QUSRJOBI to name one).

I have found how to get the Job Description of a Job waiting in the JobQ.

But, I need to know how to get the "Initial Library" list of a job that is
waiting in the JoqQ (not actively running) as it may be different than the
library list of its associated job description.

Can anyone point me in the good direction to follow the rabbit down this



This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2024 by 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.