Try the code fragment below in a CL...
Code
Try the code fragment below in a CL...
Code
RTVJOBA USRLIBL(&USRLIBL) CURLIB(&CURLIB) SYSLIBL(&SYSLIBL)
Strongly not recommended way to check if library is in library list: ADDLIBLE YOURLIB *LAST MONMSG CPF2103 EXEC(........) Don't forget to remove it after.
Does anyone know in which file the library list is stored? It would save me a lot of effort to read this directly rather than to do a dsplibl, copy it to a spool file, copy that to a physical file and then have to clean that up. :-(
The original message indicates a basic misunderstanding. The library list isn't normally stored in a file, nor in a data area, nor any other part of permanent storage; the library list is a job attribute that is associated with an active task. It is part of the runtime environment of a job. Now, an application can choose to store the library list in a file (or data area, or user space, or ...). In fact, this is a common strategy for setting the initial library list. However, your current library list may not be the same as your initial library list, and it's the current library list that most people are interested in. Therefore, the postings talking about using the RtvJobA command are right on target.