I have a JCL with 10 steps, want to execute first 5 steps
only, what are ways of doing it?is it possible to control
through JOB card?

Answer Posted / zos13

One more Answer:

If you are good with IDCAMS, then in step5 or (add 1 more step
With name step5r after step 5 and before step6) supply

//step5r exec pgm=IDCAMS
//sysin dd *

SET MAXCC = 16
/*
in Job card, use : COND=(16,EQ).

It will execute till step5 successfully, at step5r it will acquire MAXCC=16, Condition in JOB card is true, all steps will be bypassed after5.
**If you can't create new STEP5r, then please use SYSIN DD * in step5, it is same thing*****

You may also use RC in place of MAXCC.

Please reply here if it works for you or at: thespider390@hotmail.com

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about jcl?

840


how you can direct the data to spool using SYSOUT option?

1137


What is catelog procedure and how many catelog procedure to use in one job?

7992


What happens if both JOBLIB & STEPLIB is specified ?

811


What is Cataloged Procedures?

881






What is the function of the steplib dd statement?

909


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

1046


Suppose I have five jobs to do. But I want to hold one?

847


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

837


What is the maximum length of a single line of jcl?

1022


how can the same proc be re-used and called by many jobs?

1162


What is the function of job statement in jcl?

813


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

1178


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1753


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

820