View previous topic :: View next topic
|
Author |
Message |
rdr
New User
Joined: 26 May 2006 Posts: 35 Location: india
|
|
|
|
Hi All,
We are creating a new test region JCL set up. Currently we are given qualifier, which may change(not sure about why they are planning to change in future).
If in that case we have to do rework of all the JCL's(around 200 JCL). So we are looking for automating the changes.
Can you please guide me if we can use any tool to change the first qualifier of files names of all the JCL's from TEST to TEST1.
Ex: test region qualifier is TEST.XXX.XXX
I want to change this to Prod region qualiifier ie TEST1.XXX.XXX
Thanks!!!
Rohit |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
I might be missing something, but can't you just use File/Aid (if you have it) or an ISPF edit macro? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
You can use ADRDSSU (DF/DSS) to DUMP / RESTORE the data sets to their new name. It handles wild cards, but if you're not deleting the old data sets you have to REPLACE as well as RENAME them. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Use a symbolic parameter for the HLQ then you only need to change it at one place per job/procedure and that can be done via a rexx program and edit macro. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
Alternatively, you could try using DFSORT to change all instances of DSN=TEST. to DSN=TEST1.
Garry |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1314 Location: Vilnius, Lithuania
|
|
|
|
IPOUPDTE or Jay Moseley's PDSUPDTE |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 734 Location: Denmark
|
|
|
|
Copy JCL to a new library, then use PDS86 from CBTTAPE.ORG file 182. Incidently PDS86 can select members for copy based on contents of members. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
it seems odd that in 2016 the process has never been done and is not documented anywhere in the TS organisation |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
It is not actually clear what he wants automated! Changing the JCL (jobs or procedures or both) or renaming the datasets (which was the view taken by Robert) or the whole shebang. When I read the topic title I thought they were going to ask about scheduling!
rdr - please come back with clarification, comment, thanks - whichever is/are appropriate. |
|
Back to top |
|
|
rdr
New User
Joined: 26 May 2006 Posts: 35 Location: india
|
|
|
|
Hi Nic,
Thanks!! a lot for all your feedback. As of now I do not have Mainframes access set up yet. So I was holding myself back. I am thinking of using your inputs to use REXX. Going thru REXX docs as I am new to REXX.
Thanks!!!
rdr. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
As we are still unclear about what your actual requirement(s) is/are we do not know if the Rexx route is the correct way to go. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
I believe that somebody who joined the forum 10 years ago should be able to describe his requirements in a better way |
|
Back to top |
|
|
|