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
which utility is used to run a cobol-db2 program?
what is “Cond= even” and “Cond=only”?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
How do you submit a job for execution?
Is condition checking possible in jcl? If yes, how?
Explain the jcl exec statement?
Which dd parameters are required?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
Explain how can values be passed from the job stream to an executable program?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
How would you understand error(execution phase)?
What is jcl in mainframe?