Thank you for your response.

That is why I am not looking for the JobD library list or the system library
list. I am looking for the "Initial" library list of the submitted job
while it is still on the JobQ. I am looking for the library list that the
job will first use when it finally becomes active, but before it becomes
active.

The user that submitted the job may have signed off the system or may have
changed their library list after they submitted the job, so looking at the
user's library list would be meaningless as well.

Rich


-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
dfreinkel@xxxxxxxxxxxxxxxxx
Sent: Thursday, June 6, 2024 7:38 AM
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: Retrieving Initial LIBL from a Job in a JOBQ

Rich

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
A4G
Telephone: 770.321.8562

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Rich
Marion
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
hole?



Thanks

Rich





--
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,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.


--
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,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



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.