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

In sms datasets, what is the function of the dd mgmtclas keyword?

855


What is the function of dd disp parameter?

654


What are steplib and joblib?

719


Is their any limit for data sets?

699


What is the function of the dd mgmtclas keyword in sms datasets?

730






What is timing concept in mainframe?

1656


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

1805


Is acct parameter mandatory?

758


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1947


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

716


In job processing, what happens in execution stage?

696


How can unused space allocation be returned to the system when a dataset is closed?

802


How to execute 2nd and 4th steps among 5 steps in jcl proc?

747


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

608


What is notcat 2 - gs?

930