A job has 90 steps i want to execute only step7 and step15

Answers were Sorted based on User's Feedback



A job has 90 steps i want to execute only step7 and step15..

Answer / praveen bejjanki

In the jobcard, Give restart=step7, code cond=(0,le) from
step8 - step14, Give a null stmt(//) after step15. That's
it your requirement is met.

Simplest way:
There is an utility IEBEDIT which is used to execute only
few particular steps from 'n' steps in a jcl.

//JOBCARD
//STEPNAME EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=MYPRGM.DSN,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE STEPNAME=(STEP7,STEP15)
/*
//

MYPRGM.DSN = The name of the dataset that has the actual
JCL.

Suggestions are kindly accepted.
Do correct me if i'm wrong.

Is This Answer Correct ?    16 Yes 0 No

A job has 90 steps i want to execute only step7 and step15..

Answer / shriram10

Ans1) you can use IEBEDIT Utility like
//step1 exec pgm=iebedit
//sysprint dd sysout=*
//sysut1 dd dsn=proj.test.file,disp=shr
//sysut2 dd sysout=(*,intrdr)
//sysin dd *
edit type=include
stepname=(step7,step15)
/*

correct me if i am wrong
thanks

Is This Answer Correct ?    2 Yes 0 No

A job has 90 steps i want to execute only step7 and step15..

Answer / rajasekhar pattem

yes

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that??

14 Answers   L&T,


i have a ps with two columns eno and ename , i need to copy eno column values in one ps and ename column values in one Ps ? is it possible through iebgener . how ? thx in advance

1 Answers   IBM, TCS,


What are SD37, SB37, SE37 abends?

4 Answers  


Hi, If a catolog proc has another proc in it, both have ddnames dd1 and dd2. what proc will override if gave override parameter. Here both have same step names.

2 Answers   UHG,


What are the common keyword parameters in both job and exec statements

4 Answers   Cap Gemini,






if in a job, region is mentioned in both jobcard and in step then which is cosidered at the step level? A job has region 4k in jobcard and step1 with region 0k and step2 with 16k, then what is the region allocated for the entire job? what is the region step1 takes? what is the region step2 takes?

4 Answers  


how to create a member or sequential dataset through tso command??

4 Answers  


describe the dd statement,its meaning,syntax and keywords?

1 Answers  


I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ( How do you code instream data in a JCL? )

9 Answers  


hi friends........if u know syntax of IEBEDIT IN JCL

2 Answers  


a jcl has 2 steps. How to code the jcl such that if step1 abends, then step2 runs. Else, job terminates with step1?

1 Answers   IBM,


Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?

5 Answers   IBM,


Categories