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

if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

0 Answers   IBM,


can we maintain 2 generations with different Lengths in Same GDG ?

3 Answers   RBS,


How to pass values in jcl to cobol?

4 Answers   IBM, Infosys,


How to get cursor position from system in CICS environment ?

8 Answers  


Can you execute a PROC from another PROC?

8 Answers   Keane India Ltd,






how can we pass external data to instream procedures

5 Answers   IBM, Infosys, Ocwen,


jcl is like a complier....?

6 Answers  


A STEP has more than 1 file as INPUT. And we have to put all these records int 1 output file. How to do ? //InputF  DD DSN=ID.File1              DSN=ID.File2              DSN=ID.File3

1 Answers   FIS,


do we need to mention the location of catalogued procedure for each it's call in a single job?

1 Answers  


how can i code cond parameter in procedures ? i have a jclk calling a proc which has 10 steps i want to execute from step 5 to step 10 where can i code restrat parameter or cond parameter for ths

4 Answers   IBM,


ihave ten flatfile in that iwant to concatinate all the files except file 5,6 into output file by uing jcl? how to do this? give me detail yntax for tis?

4 Answers   IBM,


How To get the last record in VSAM file in cluster? and How can u get the ksds file records into ur cobol program ? Pls tell me about these two questions.

1 Answers   Cap Gemini,


Categories