Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Automating the JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Automating the JCL
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: 175
Location: UK

PostPosted: Wed Mar 02, 2016 6:20 pm    Post subject: Reply to: Automating the JCL
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: 7904
Location: Bellevue, IA

PostPosted: Wed Mar 02, 2016 6:33 pm    Post subject:
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: 1712
Location: UK

PostPosted: Wed Mar 02, 2016 6:41 pm    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Mar 02, 2016 7:53 pm    Post subject:
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

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

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

New User


Joined: 01 Sep 2015
Posts: 94
Location: Switzerland

PostPosted: Wed Mar 02, 2016 9:34 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Wed Mar 02, 2016 10:44 pm    Post subject: Reply to: Automating the JCL
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: 1712
Location: UK

PostPosted: Thu Mar 03, 2016 4:44 pm    Post subject:
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    Post subject:
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: 1712
Location: UK

PostPosted: Tue Mar 08, 2016 3:24 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Tue Mar 08, 2016 3:53 pm    Post subject: Reply to: Automating the JCL
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Automating the job flows by using the... chandrupegasus All Other Mainframe Topics 10 Mon Jul 01, 2013 3:48 pm
No new posts Automating element generate on DLET f... Tebogo23 CA Products 1 Wed Sep 29, 2010 1:40 pm
No new posts Automating Newcopy thru Endevor Tebogo23 CICS 9 Tue Sep 14, 2010 4:33 pm
No new posts Automating a mainframe application ma... dick scherrer Testing & Performance analysis 8 Wed May 06, 2009 2:52 pm
No new posts Automating NDM process Phrzby Phil All Other Mainframe Topics 22 Thu Dec 13, 2007 7:40 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us