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

Time Parameter to be given for a step inside a proc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Dec 08, 2010 2:32 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Dec 08, 2010 3:43 pm
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
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
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
Reply with quote

the link
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: 8797
Location: Welsh Wales

PostPosted: Wed Dec 08, 2010 5:02 pm
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

Superior Member


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

PostPosted: Wed Dec 08, 2010 8:33 pm
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
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: 1788
Location: Bloomington, IL

PostPosted: Wed Dec 08, 2010 9:08 pm
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

Superior Member


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

PostPosted: Wed Dec 08, 2010 9:17 pm
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
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

Superior Member


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

PostPosted: Thu Dec 09, 2010 4:31 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top