I have 20 steps in a job... step01, 02....step17...step20.
For some reason I want to execute step17 only if the return
code for all the previous steps are less than or equal to 4.
otherwise if return code for any of the previous 16 steps
is greater than 4, then step17 should be bypassed. How do I
do that ?? how and in which step should i formulate COND
parameter
Answer Posted / ssssss
//STEP17 EXEC pgm=aaaaa,
// COND=(4,LT)
this will execute only the step017. If the return code is
Zero for the previous step then 4 is not less than zero so
condition fails so it will execute this step
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
Describe the various parameters utilized in the creation of a gdg?
what is the resolution for sb37 error
What is the purpose of disp parameter?
which parameter is use to declare the name of dataset in dd statement?
What is use of restart and how to use it?
what is DSN in JCL and what are the parameters to declare the DSN?
What is the difference between the positional and keyword parameters? Give examples.
What are the parameter we cannot use in procedure?
Brief description of inline procedure of jcl.
How to do automated restart when a job abend?
List the different jcl statements that are not permitted in the procedures?
Is it possible to code instream data in a PROC?
which utility is used to run a cobol-db2 program?