Remove library from all library lists

5 pts.
Tags:
AS/400
JOBD
OS/400
We've stopped using a vendor's product that has been here since we first became a 400 shop 12+ years ago. The vendor's libraries have found their way into hundreds of job descriptions across the system. Is there an easy way to remove the entries for these libraries from all the job descriptions? I've been checking to see if there are locks on the libraries to see what currently running jobs reference them but am afraid of a scheduled task for another call program referencing a job description with a missing library and failing to run.

Answer Wiki

Thanks. We'll let you know when a new response is added.

I don’t know if you would consider this “easy”, but you could use the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/quslobj.htm”>List Objects API</a> to get a list of all *JOBDs on your system. Given this list, you could then loop through each returned *JOBD and use the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/qwdrjobd.htm”>Retrieve Job Description Information API</a> 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
<a href=”http://www.brucevining.com/”>http://www.brucevining.com/</a>
Providing integrated solutions for the System i user community

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gilly400
    Hi, It might also be worth looking to reduce the number of job descriptions that you're using if you have hundreds of them. This would make similar tasks in the future quicker and easier. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • BobbyOfWindsor
    Checkout www.foursquares.ca. There is a tool there that can be used to remove libraries for some, or all of the JOBD's on your system. The JOBD is currently in BETA, but its a small set of commands to manange library lists. SETLL to set the current library list from a JOBD. VLDJBD to validate jobd description library lists. UPDJBDLL to update job description library list, which is the one you want. SAVLL - save the current library list. RSTLL - restore a library list. + a command to run a command with a jobd library list, then set it back when finished. You can trial a fully functional verson. Check to buy if you decide. But you can use the trail to start removing libaries.
    80 pointsBadges:
    report
  • TomLiotta
    One possibility is simply not to delete the library -- only delete the objects that were in it. Or if the library is deleted when the product is uninstalled, create a new library with the same name. Then start auditing the library object and search at your leisure for references. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following