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
 

 

Scanning JCL's in PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Shriram Jogdand

New User


Joined: 14 Oct 2008
Posts: 65
Location: Pune

PostPosted: Fri Feb 13, 2015 4:05 pm    Post subject: Scanning JCL's in PDS
Reply with quote

I have 1000's of JCLs in a PDS. Few of them have TIME parameter and few don't have.

1. I want to search this PDS and find out the list of JCL's which don't contain this Parameter.
2. Once I get the list, I want to add the TIME parameter (TIME=5).

How can I do these 2 tasks?

Sorry if similar post is already available on forum. I searched but didn't get it.
Back to top
View user's profile Send private message

prino

Active Member


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

PostPosted: Fri Feb 13, 2015 4:59 pm    Post subject:
Reply with quote

You don't use a TIME= parameter, you use the correct CLASS=, so that one change to the CLASS definition will automatically change all jobs that use that class.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Sun Feb 15, 2015 3:44 pm    Post subject:
Reply with quote

1. Easy: use ISRSUPC with option LNFMTO
2. Not easy: you may need to split the JOB card if there is not enough space on the line, or the JOB may already be split.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Mon Feb 16, 2015 2:01 pm    Post subject:
Reply with quote

Firts I'd suggest you take a copy of the PDS to test your options on so you don't screw up the original!

PDSMAN scan/replace, or FileAid utilities could do this. Another option might be SAS or REXX so you can read the whole member in and modify it before writing it back. This way it might be easier to deal with instances where the jobcard will have to extend to a new line.

Worth exploring Prino's suggestion too. Most companies will have certain jobclasses that are set to allow a fixed amount of CPU time. Different classes will have different times values, so you'd modify the JCL to match the best fit jobclass. It seems primitive to have a fixed TIME= value which will definitely cause the jobs to fail if exceeded, unless that is what you want, for testing jobs perhaps?
Back to top
View user's profile Send private message
steve-myers

Active User


Joined: 30 Nov 2013
Posts: 462
Location: The Universe

PostPosted: Mon Feb 16, 2015 5:51 pm    Post subject:
Reply with quote

Mr. Wilson's third paragraph is not quite correct. The job class setting in JESx defines a default limit for a job step, not for a job. Many ill informed people seem to think the JESx default time is for the entire job. I can't tell you how often I set a large time for a job only to get blown away because of the default step time. I've always thought the default step time should be set high so that the job time would rule.
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
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Scanning PDS name for multiple strings balaji81_k TSO/ISPF 5 Mon Apr 08, 2013 5:18 pm
No new posts scanning a field in multiple recrds b... Frank Yaeger DFSORT/ICETOOL 1 Fri Jun 10, 2011 12:21 pm
No new posts GDG base need to create by scanning t... enrico-sorichetti CLIST & REXX 6 Fri Nov 26, 2010 5:47 pm
No new posts Scanning for data in multiple members... expat JCL & VSAM 8 Fri Mar 07, 2008 8:38 am


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