Remove library from all library lists

5 pts.
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 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

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.
  • 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:
  • BobbyOfWindsor
    Checkout 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:
  • 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:

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.

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


Share this item with your network: