Mass update the JCLs in a PDS.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
Chetan Kakkar
Registered Member
Posts: 12
Joined: Wed Dec 11, 2013 1:34 pm

Mass update the JCLs in a PDS.

Post by Chetan Kakkar »

Hi,

We had been using CA products but they have decommissioned. Though there was an email from System Teams but for some reason the Team responsible has forgot to remove two of the data sets from a list of JCLs.

Pattern 1:

Code: Select all

//JOBLIB   DD  DSN=PROD.USDTE.LOADLIB,DISP=SHR 
//         DD  DSN=PROD.STAGE.LOADLIB,DISP=SHR 
//         DD  DSN=PROD.FINAL.LOADLIB,DISP=SHR 
//         DD  DSN=IPO2.CAOPT.CAILPA,DISP=SHR  
//         DD  DSN=IPO2.CAOPT.CAILIB,DISP=SHR  
//         DD  DSN=SYS1.VSCLLIB,DISP=SHR       
//         DD  DSN=SYS1.VSCOLIB,DISP=SHR        
Pattern 2:

Code: Select all

//JOBLIB   DD  DSN=PROD.STAGE.LOADLIB,   
//             DISP=SHR                  
//         DD  DSN=PROD.FINAL.LOADLIB,   
//             DISP=SHR                  
//         DD  DSN=IPO2.CAOPT.CAILPA,    
//             DISP=SHR                  
//         DD  DSN=IPO2.CAOPT.CAILIB,    
//             DISP=SHR                  
//         DD  DSN=SYS1.VSCLLIB,         
//             DISP=SHR                  
//         DD  DSN=SYS1.VSCOLIB,         
//             DISP=SHR                  
Dataset at 4th and 5th position needs to be removed. There are 2000+ JCLs. They have similar pattern like above, not same though.

Is there a way to do it in single go than doing it manually?

Also, we sue ISPW, which allows maximum of 300 components only to be 'checked-out' once. I might need to ask it with our ISPW Team, but if anybody has faced this constraint please guide on this to go beyond the limit.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Mass update the JCLs in a PDS.

Post by Robert Sample »

Rather than spend the time to remove two libraries from 2000+ sets of JCL, why not create replacement load libraries for the two data sets and just put something innocuous in them (like IEFBR14)? Then your group can clean up the JCL as you make other JCL modifications over time.

Questions like yours are probably the main reason that INCLUDE libraries were defined and allowed by JES -- if the 2000+ sets of JCL used INCLUDE statements for the JOBLIB, then you'd have to change one member of the INCLUDE library and you'd be done with it.

But in general, someone has to touch every one of the 2000+ sets of JCL to remove the libraries if your group decides that the data sets have to be removed. There's not a good shortcut for what you want to do.
Chetan Kakkar
Registered Member
Posts: 12
Joined: Wed Dec 11, 2013 1:34 pm

Re: Mass update the JCLs in a PDS.

Post by Chetan Kakkar »

Thanks Robert for your reply.
Rather than spend the time to remove two libraries from 2000+ sets of JCL, why not create replacement load libraries for the two data sets and just put something innocuous in them (like IEFBR14)? Then your group can clean up the JCL as you make other JCL modifications over time.
We did this now though can they not keep it like this for long time? Or forever?
Chetan Kakkar
Registered Member
Posts: 12
Joined: Wed Dec 11, 2013 1:34 pm

Re: Mass update the JCLs in a PDS.

Post by Chetan Kakkar »

Robert Sample wrote: Fri Jul 01, 2022 10:03 pmQuestions like yours are probably the main reason that INCLUDE libraries were defined and allowed by JES -- if the 2000+ sets of JCL used INCLUDE statements for the JOBLIB, then you'd have to change one member of the INCLUDE library and you'd be done with it.
In some of the JCLs we have INCLUDE not in all.
User avatar
pg0rl1nsky
New Member
Posts: 1
Joined: Thu Dec 01, 2022 7:52 pm

Re: Mass update the JCLs in a PDS.

Post by pg0rl1nsky »

What about using REXX to remove the cards? There are REXX functions to read/write the members using EXECIO and you can get the member list by using LISTDS with the MEMBERS option and capture the output.

There also was/is and IBM utility that was used during the installation process of z/OS call IPOUPDTE/CPPUPDTE that performed PDS edits ( not sure if it is still available or if it works with PDSEs ).

However, for what you are doing, I think if you use REXX and LISTDS you can get the job done.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”