We have 100 steps in a procedure and we need to run the jcl
and execute only 25th step in the proc and not the
remaining steps. How can we do it?

Answers were Sorted based on User's Feedback



We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / manjunath s h

use restart parameter, restart = procstep.stepname
procstep: the step of the jcl which is invoking the proc.
stepname: the step in proc where u want the execution to
start.

use null statement after the 25th step in the proc.
or
override the cond parameter of 26th step as cond=(0,LE).

Is This Answer Correct ?    12 Yes 1 No

We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / prakash

Use IEBEDIT utility and select the required step alone for
execution

Is This Answer Correct ?    4 Yes 1 No

We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / vikas bhardwaj

//QV1P01TV JOB ABCB......
//STP EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT = *
//SYSUT1 DD DSN=.......
//SYSUT2 DD DSN=.......
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP25)
/*

Is This Answer Correct ?    5 Yes 2 No

We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / indrani

We can copy the PROC into personal library and edit the
proc and put a null card post 25th step. Then make the JCL
use your personal library as the proc and only 25th step
will run and the rest of all steps will be bypassed.

I would recommend this to be the best answer.

Is This Answer Correct ?    3 Yes 1 No

We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / varmak

@ Indrani

In case if we are anyways editing the proc, we can copy
only step25 into local jcl pds & execute... why copy
entire proc..?

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JCL Interview Questions

What is the significance of addrspc parameter in the exec statement?

0 Answers  


if we give TIME=0 how many sec that job/step

13 Answers  


how to count the number of members in pds?

2 Answers  


i have 6 steps in my jcl program after going to 5th step i want to execute 3rd step.....how can i do it....by using(RESTART) can i do it or not?

2 Answers   Wipro,


what is the resolution for sb37 error

2 Answers   TCS,






What is STEPLIB, JOBLIB? What is it used for?

2 Answers  


how to identify a vasam dataset by seeing in 3.4(browse)

5 Answers   Cap Gemini,


What is the difference between catalogue procedure and In-Stream procedure?

2 Answers  


suppose i have job it contains 10 steps after exicution of job failuer at 3 and 7 th steps i want exicute step 3 and step 7 only how we specify condition ?

5 Answers  


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

0 Answers  


How to find the length of variable length copybook using fileaid ??

1 Answers   CSC,


what is alternate index?

1 Answers  


Categories