How to execute only th 15th step of JCL consisting of 50 steps?

Answers were Sorted based on User's Feedback



How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / madhavi

Restart= step15 will run from 15th step not only 15th step

Is This Answer Correct ?    28 Yes 0 No

How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / raj

use iebedit utility

Is This Answer Correct ?    24 Yes 0 No

How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / ekanthraj

cond=(0,le),restart = step15.

Is This Answer Correct ?    16 Yes 1 No

How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / muttaiah

There are 3 ways to achieve the above task.
1) Using restart & Cond:
Code restart=step15,cond=(0,le)
2) using restart & Null stmt
restart=step15, Code a null stmt(//) after step15.
3) Using Iebedit
//jobcard
//stepname exec pgm=iebedit
//sysut1 dd dsn=actual pds/ps that has the jcl
//sysut2 dd sysout=(*,intrdr)
//sysin dd *
edit type=include,stepname=step15
/*

Using option 1 & 2 will require the jcl to be copied to ur
personal pds and edit the jcl and pass it on to Operation
team to restart the job with the override pds

using option3 we can directly send this jcl to run without
editing the actual jcl
best way would be create a iebedit jcl in ur program
whenever the job needs to run for particular steps change
the iebedit jcl and send it to the team who will run the job

Hope this will give complete idea regarding restarting a
job.
Corrections are heartily welcomed.

Is This Answer Correct ?    12 Yes 0 No

How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / paray2x

One option is to use RESTART=STEP15 and insert a null JCL
before it.

Otherwise, determine what condition code STEP15 will
return. If it will return 0, then code RESTART=STEP15 and
COND=(0,EQ) on the job card itself.

The COND will apply to all steps. Since STEP15 has no
previous step when restarting, COND will be ignored for
this step. Then, other steps will flush because of the COND
parameter.

Is This Answer Correct ?    12 Yes 2 No

How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / nygrande

I go with Raj reply. Use iebedit utility.

The sintax is:

//SYSIN DD *
EDIT TYPE=INCLUDE, STEPNAME=(STEP15)
/*

Is This Answer Correct ?    7 Yes 0 No

How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / muttaiah

Nishant,

Cond wil execute the step only when the cond is false. If
you see we have given Cond as cond=(0,le) so it will
satisfy what ever may be the return code of the step that's
why it will bypass all the steps.

Hope this answers.

Is This Answer Correct ?    2 Yes 0 No

How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / sathish

What about using SUBS in the JCL comand line and selecting step15 alone to run

It will run only with selected job step

Is This Answer Correct ?    0 Yes 0 No

How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / nishant

bt suppose step 15 returns code = 0 nd we coded cond=(0,le)
aftr 15th step thn will it execute the step aftr 15th step
or not? i think i should execute..wat u say

Is This Answer Correct ?    0 Yes 1 No

How to execute only th 15th step of JCL consisting of 50 steps?..

Answer / nishant

Yes u r rite...

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More JCL Interview Questions

//{name} INCLUDE MEMBER=memname {comments} in the include statement, what actually happens when its executed? The membername conatains a list of valid JCL statements, so will the include statement be substituted by these statements and how can we mention the pds that conatains the member? How does the include group differ from a PROC? how is include statement connected to JOBLIB and STEPLIB?

2 Answers   CCS, CTS,


If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute the 5th step how do i do this?

13 Answers   Cognizant, Convergys, IBM, TCS, Wipro,


1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program anyone please answer me for above questions. it's very urgent

1 Answers  


Explain the jcl exec statement?

0 Answers  


Can a job have only steplib and no joblib ?

6 Answers  






List the different components of jcl statement?

0 Answers  


How to delete AIX ? i) IEBGENER ii) IDCAMS iii) PURGE iv) All of the above

3 Answers   HSBC,


describe the job statement, its meaning,syntax and significant keywords?

1 Answers  


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

0 Answers  


Is it possible to code instream data in a PROC?

0 Answers  


Can you code instream data in a PROC ?

10 Answers  


List the different jcl statements that are not permitted in the procedures?

0 Answers  


Categories