RATE THIS ANSWER
0
Click to Vote:
0
0
Last Answered:
Apr 22 2008 9:35 PM GMT
by Bvining
I don't know if you would consider this "easy", but you could use the
List Objects API to get a list of all *JOBDs on your system. Given this list, you could then loop through each returned *JOBD and use the
Retrieve Job Description Information API to access the initial library list found in each *JOBD. Search the *JOBD initial library for the library in question and, if found, construct a proper CHGJOBD command to set the new library list and use an API such as QCMDEXC or QCAPCMD to run the CHGJOBD. This approach would cover all *JOBDs and would not be overly difficult to automate (if you're familiar with system APIs).
Bruce Vining
http://www.brucevining.com/ Providing integrated solutions for the System i user community