View previous topic :: View next topic
Author
Message
anatha New User Joined: 19 Jan 2006Posts: 7
Hi All ,
In JCL 5 steps is there.But i want to execute only step 2 and 4 by using cond. How can i code and in which step i will use cond. :?
Back to top
Rupesh.Kothari Member of the Month Joined: 27 Apr 2005Posts: 463
HI,
Quote:
In JCL 5 steps is there.But i want to execute only step 2 and 4 by using cond. How can i code and in which step i will use cond.
This topic already discussed so many times in forum, Make a search you will get what u want.
Regards
Rupesh
Back to top
appasi New User Joined: 12 Dec 2005Posts: 20 Location: Bangalore
Hi Anatha,
code RESTART = step2 in job card, and in third step code COND = (0,LE),
and in 5th step code COND = (0,LE) .
correct me if i am wrong
Back to top
anatha New User Joined: 19 Jan 2006Posts: 7
Thankx
Back to top
Dariusz Warnings : 1 New User Joined: 11 Aug 2005Posts: 27 Location: POLAND
HI.
Generally you can use the next method:
Code:
//run proc c1=0,c2=0,c3=0,.....,cn=0
//code exec pgm=iefbr14
//step1 exec pgm=a1,cond=((&c1,eq,code))
//step2 exec pgm=a2,cond=((&c2,eq,code))
..........
//stepn exec pgm=an,cond=((&cn,eq,code))
//* end run
In your job set parameter:
Code:
//aaa job
//go exec run,c4=1,c5=1
Step4 and step5 will by executed.
Back to top
gowtham_1982 Warnings : 1 Active User Joined: 02 Dec 2005Posts: 109
Dariusz wrote:
HI.
Generally you can use the next method:
//run proc c1=0,c2=0,c3=0,.....,cn=0
//code exec pgm=iefbr14
//step1 exec pgm=a1,cond=((&c1,eq,code))
//step2 exec pgm=a2,cond=((&c2,eq,code))
..........
//stepn exec pgm=an,cond=((&cn,eq,code))
//* end run
In your job set parameter:
//aaa job
//go exec run,c4=1,c5=1
Step4 and step5 will by executed.
hai Dariusz,
can you please throw some light on
//go exec run, c4=1,c5=1. also what does
//run proc c1=0,c2=0,c3=0,.....,cn=0 mean. are we meaning the step name?
kind regards,
gowtham
what does the run signify here.
Back to top
superk Global Moderator Joined: 26 Apr 2004Posts: 4652 Location: Raleigh, NC, USA
Hmm, Dariusz, interesting concept! Seems like it works nice if you have certain programs you want to run "on demand".
Back to top
Please enable JavaScript!