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 / vijay sankar

The purpose of the COND is to determine whether the step
should be executed or bypassed. If condition specified in
the COND parameter is true,the step is bypassed.

so if we use // COND=(4,LT) .....this step will never excute
use COND=(4,GT)which is correct

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I share my data with other jobs? How?

670


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5062


What is the use of disp parameter?

653


What are the jcl procedures?

647


What is the difference between run mode and addressing mode?

636






My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1987


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

924


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

737


Name the statement which can be used to send data to another mvs jes3 node?

605


How can the disposition of sysout datasets be set for an entire jobstream?

841


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

821


What are the parameter we cannot use in procedure?

640


What is the purpose of dd?

728


How does jcl act on a cobol code?

659


What is the purpose of dd * statement in jcl?

812