Ques: How can we code COND parameter in a JCL so that only
even steps (or only odd steps) get execute??

Answer Posted / muttaiah

I think in this way you can achieve your requirement.
For ODD steps:
Code cond=(0,LE) or cond=(4096, GT) on all Even steps.
For Even steps:
Give restart=step2 in job card,
Code cond=(0,LE) or cond=(4096, GT) on all Odd steps.

The reason why we are using cond=(0,le) or (4096,GT) is
The cond parameter work's in such a way that if the the
condition is true it will bypass the step on which it is
coded.
here (0,le) or (4096,Gt) is always true so the steps will
bypass(won't execute).

@All: Do correct me if i'm wrong.

Is This Answer Correct ?    26 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is SOC4 error?

740


what sort card you will use to copy the data from one dataset to another dataset?

733


List the various advantages of using jcl language?

853


how JCL works?

799


What are the rules employed while naming the steps in a job?

663






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

1974


what are the statements that are not valid to be included in an include statement?

778


Are there any set of rules for the names of the steps used in a job? What are they?

614


Is it possible to code instream data in a PROC?

754


What is jcl in mainframe?

691


Name the parameters which can be used to limit the number of records written to a sysout dataset?

657


What is the purpose of dd * statement in jcl?

813


Explain the function of //jcllib statement?

708


For what purpose steplib and joblib are used ?

690


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

743