in my jcl have 20 steps step1,step2,.... step20.and i have to
execute step1,step2,..and skip the step3 and remaing
step4,step5 are execute? i want skip step3 only? what code u
can write?

Answers were Sorted based on User's Feedback



in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the s..

Answer / piyush mani

most easy way to do it is to use "IEBEDIT" UTILITY LIKE BELOW


//JOBCARD
//STEPNAME EXEC PGM=IENEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=FSS345.PIYUSH.JOB1,DISP=SHR
//SYSIN DD *
EDIT START=JOBNAME OF DESIRED JOB, TYPE=EXCLUDE,
STEPNAME=(STEP3)
/*
//


GIVE UR FEEDBACK....

Is This Answer Correct ?    13 Yes 0 No

in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the s..

Answer / rammateti

In Step3 u can write the COND=(0,LE) then that step3 is skip.
or

u can use
//step3 exec pgm=abc,cond=(4095,GT) also work same as above.

By
Prathap

Is This Answer Correct ?    11 Yes 0 No

in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the s..

Answer / rammateti

u can write in step3 cond=(0,LE) then the step3 is skiped

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More JCL Interview Questions

Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FILE2,DISP=SHR and the above DD name is overridden from the JCL as given below //procstepname.ABC DD DSN=TEST.FILE3 - Will the DD statement now have just TEST.FILE3 or it will be TEST.FILE3 and TEST.FILE2? Suppose if it is overridden twice like //procstepname.ABC DD DSN=TEST.FILE3 //procstepname.ABC DD DSN=TEST.FILE4 Will this give a JCL error? If not, what will be final output?

2 Answers  


What do you understand by the term notcat 2 – gs?

0 Answers  


what happens in execution stage in job processing?

0 Answers   IBM,


Can we write same stepname for one or more steps in on job ?

2 Answers  


What is the function of dd name parameter with a 2 part structure; audit.report?

0 Answers  






Name the parameters which can be used to limit the number of records written to a sysout dataset?

0 Answers  


Explain the purpose of dd dummy statement?

0 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,


How do you submit a job for execution?

0 Answers  


When concatenating two PDS can any one PDS can have empty dataset i.e without any value(Dummy).

2 Answers  


How to identify in JCL that an input file is empty without reading it?

4 Answers   L&T,


Is CPU time assigned to a JOB and JOBSTEP BOTH, by default ?

4 Answers   IBM,


Categories