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


Please Help Members By Posting Answers For Below Questions

what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

913


//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 /*

1121


Describe the various parameters utilized in the creation of a gdg?

861


what is the resolution for sb37 error

8325


What is the purpose of disp parameter?

835


which parameter is use to declare the name of dataset in dd statement?

965


What is use of restart and how to use it?

1010


what is DSN in JCL and what are the parameters to declare the DSN?

952


What is the difference between the positional and keyword parameters? Give examples.

941


What are the parameter we cannot use in procedure?

819


Brief description of inline procedure of jcl.

898


How to do automated restart when a job abend?

1002


List the different jcl statements that are not permitted in the procedures?

831


Is it possible to code instream data in a PROC?

973


which utility is used to run a cobol-db2 program?

1019