IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Automating the JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rdr

New User


Joined: 26 May 2006
Posts: 35
Location: india

PostPosted: Wed Mar 02, 2016 6:07 pm
Reply with quote

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
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Wed Mar 02, 2016 6:20 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Mar 02, 2016 6:33 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Wed Mar 02, 2016 6:41 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1205
Location: Dublin, Ireland

PostPosted: Wed Mar 02, 2016 7:53 pm
Reply with quote

Alternatively, you could try using DFSORT to change all instances of DSN=TEST. to DSN=TEST1.

Garry
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1314
Location: Vilnius, Lithuania

PostPosted: Wed Mar 02, 2016 9:13 pm
Reply with quote

IPOUPDTE or Jay Moseley's PDSUPDTE
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 734
Location: Denmark

PostPosted: Wed Mar 02, 2016 9:34 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Wed Mar 02, 2016 10:44 pm
Reply with quote

it seems odd that in 2016 the process has never been done and is not documented anywhere in the TS organisation
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Thu Mar 03, 2016 4:44 pm
Reply with quote

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
View user's profile Send private message
rdr

New User


Joined: 26 May 2006
Posts: 35
Location: india

PostPosted: Tue Mar 08, 2016 12:53 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Tue Mar 08, 2016 3:24 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Tue Mar 08, 2016 3:53 pm
Reply with quote

I believe that somebody who joined the forum 10 years ago should be able to describe his requirements in a better way icon_eek.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Automating the job flows by using the... All Other Mainframe Topics 10
No new posts Automating element generate on DLET f... CA Products 1
No new posts Automating Newcopy thru Endevor CICS 9
No new posts Automating a mainframe application ma... Testing & Performance 8
Search our Forums:

Back to Top