a job have 5 steps and it will executes a proc which have
5steps in it. now i have to execute step3 only when step2 of
proc executes successfully

Answers were Sorted based on User's Feedback



a job have 5 steps and it will executes a proc which have 5steps in it. now i have to execute step3..

Answer / vinay sonar

You can de it by using COND parameter in step3.
Use always true condition which is

COND=(0,GT,STEP2) OR COND=(4095,LT,STEP2)

Is This Answer Correct ?    1 Yes 0 No

a job have 5 steps and it will executes a proc which have 5steps in it. now i have to execute step3..

Answer / vinay srivastava

Code in calling JCL :
//JOB1 JOB ...
.
//Pstep EXEC PROC1,COND.STEP3=(0,LT,STEP2)
.
.

Is This Answer Correct ?    2 Yes 2 No

a job have 5 steps and it will executes a proc which have 5steps in it. now i have to execute step3..

Answer / amy

//job1 job a123,'amy',class=a
//proc1 proc
//step01 exec pgm=prog1,
//step02 exec pgm=prog2,
//step03 exec pgm=prog3,(0,eq,step02)
//step04 exec pgm=prog4,(0,eq,step02)
//step05 exec pgm=prog5,(0,eq,step02)
// pend
//step001 exec pgm=proc1
//step002 exec pgm=prog6
//step003 exec pgm=prog7
//step004 exec pgm=prog8
//step005 exec pgm=prog9
//

save it as abc.xyz(member)


now write an another jcl

//job2 job a123,'AMY'
//step1 exec pgm=IEBEDIT
//sysut1 dd dsn=abc.xyz(member)
//sysut2 dd sysout=(b,intrdr)
//sysin dd *
edit start=job1,type=include,stepname=(step001,step003)
/*


WHEN YOU WILL SUBMIT THIS JOB2 THEN ONLY two steps of
proc1(step01 and step02) and
step003(pgm=prog7) will be executed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

What is the DD statement for a output file?

3 Answers  


how can u understand ps and pds from their names ?

1 Answers   TCS,


how to set dependancy for jobs?

4 Answers  


How to rename a VSAM file as well as it's index file?

4 Answers   CitiGroup,


If the proc stepname is excluded while overriding the COND, TIME, REGION and PARM parameters while calling the proc, will the override only apply to the first step in the proc or all the steps for all the above parameters?

2 Answers  






In job processing, what happens in execution stage?

0 Answers  


Hi, My dataset have multiple records, say 100. I want to start copy records only after a record contain a specific value that may be in a specific position. Secondly I want to stop copying rest records if certain record contains a specific value. Can it be done using SORT/ICETOOL utilities?

5 Answers   Patni,


describe the dd statement,its meaning,syntax and keywords?

1 Answers  


What is NOTCAT 2

2 Answers   IBM,


What are the common jcl syntax errors you get? This is not abends?

1 Answers  


i created one base gdg with lrecl = 100 , now i need to create versions with different lrecl =150,200 can it be possible to create like tht ?

1 Answers   Patni, Syntel,


What is condition checking in jcl? Is this possible?

0 Answers  


Categories