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?

Answers were Sorted based on User's Feedback



I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it po..

Answer / pankaj

The easiest way to put // in job after step 5. Now it will
execute only first 5 steps.

Is This Answer Correct ?    18 Yes 1 No

I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it po..

Answer / vidya

From 5th to 10th step, give COND parameter. Give the
condition as COND=(0,LE). As 0 is always less than or equal
to the return code of executing step it will bypass.

Is This Answer Correct ?    14 Yes 2 No

I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it po..

Answer / kaarthik

USE IEBEDIT utility to just execute the steps you want to
execute in it.

Is This Answer Correct ?    4 Yes 0 No

I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it po..

Answer / 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

I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it po..

Answer / laxman

//SYSIN DD *
SORT FIELDS=COPY,
STOPAFT=5
/*

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More JCL Interview Questions

Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

0 Answers   IBM,


What is the use of ikjeft1b utility in jcl?

1 Answers  


Explain about Specifying compiler options in the PROCESS (CBL) statement

1 Answers  


Explain about LMOPEN -

1 Answers  


What are the valid DSORG values ?

3 Answers  






lines(1,cancel)??What is meant by that??Plz explain it....

1 Answers   IBM,


What is timing concept in mainframe?

0 Answers  


A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?

3 Answers   IBM,


How to concatenate different LRECL of files?

2 Answers   IBM,


how can u understand ps and pds from their names ?

1 Answers   TCS,


difference between internal sort and external sort

1 Answers  


Explain the function of the steplib dd statement?

0 Answers  


Categories