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
 

 

Time Parameter to be given for a step inside a proc

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

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Dec 08, 2010 2:20 pm    Post subject: Time Parameter to be given for a step inside a proc
Reply with quote

Hi,

Require to give TIME=5 from JCL1 to STEP2 in PROC2.

-----
JCL1
-----

//JCL1 EXEC PROC1

-----
PROC1
-----

//STEP1 EXEC PGM=ONE
//STEP2 EXEC PROC2


-------
PROC2
------

//STEP1 exec pgm=a

//STEP2 exec pgm=b

//STEP1 exec pgm=c


Thanks in advance!
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Dec 08, 2010 2:32 pm    Post subject:
Reply with quote

First, What have YOU already tried and what were the results
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Dec 08, 2010 3:43 pm    Post subject: Reply to: Time Parameter to be given for a step inside a pro
Reply with quote

to let You achieve the knowledge You are seeking

for the second part of Your signature just remember/take note of the links below
z/OS V1R11.0 MVS JCL User's Guide
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B550/CCONTENTS?SHELF=IEA2BKA1&DN=SA22-7598-05&DT=20090527042445

z/OS V1R11.0 MVS JCL Reference
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B690/CCONTENTS?SHELF=IEA2BKA1&DN=SA22-7597-13&DT=20090526233806

for the first part read and meditate on the above linked manuals icon_biggrin.gif
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Dec 08, 2010 4:51 pm    Post subject: Reply to: Time Parameter to be given for a step inside a pro
Reply with quote

the link
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B690/16.15.6?SHELF=IEA2BKA1&DT=20090526233806&CASE=
informs about the time parameter override to be used for STEPS IN ONE PROC

Time parameter needs to be be overridded at the second level in the PROC.
JCL1--> PROC1-->STEP1,PROC2-->STEP1,STEP2,STEP3
Require to give TIME=5 from JCL1 to STEP2 in PROC2.
shortened to avoid boring people
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Dec 08, 2010 5:02 pm    Post subject:
Reply with quote

Let me NOT rephrase my original question, but merely ask it again

expat wrote:
First, What have YOU already tried and what were the results

Additionally, have you referenced the materials linked to by Enrico.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Dec 08, 2010 8:33 pm    Post subject:
Reply with quote

Is not it a case of nested-PROCs?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Dec 08, 2010 8:39 pm    Post subject:
Reply with quote

Nested PROCs are a very bad idea because of problems with overrides!
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Wed Dec 08, 2010 9:08 pm    Post subject: Re: Reply to: Time Parameter to be given for a step inside a
Reply with quote

Elixir wrote:
How to override the Time Parameter for STEP present inside the PROC, which itself is inside other proc.

I am of the opinion that this cannot be done. I recommend that you re-design your process.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Dec 08, 2010 9:17 pm    Post subject:
Reply with quote

If possible, make the other PROC, PROC2, in-stream and then make the necerssary changes, but then it does not really qualify the very-definition of "overrides".
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Thu Dec 09, 2010 12:35 pm    Post subject: Reply to: Time Parameter to be given for a step inside a pro
Reply with quote

My Requirement : Overriding a step inside nested proc(Thanks Anuj for helping me name the scenario correctly)
Valuable Suggestions : Redesigning the process(Thanks Crag and Akatsukami)
My conclusion : Overriding in nested proc's is cumbersome( Thanks Akatsukami). I modified the process by including PROC2 in the job JCL1 itself.


Thanks to all those who helped me!!!!!
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Dec 09, 2010 4:31 pm    Post subject:
Reply with quote

Quote:
Overriding in nested proc's is cumbersome
I'd rather say, it's not possible.
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. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm


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