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

What do you understand by the term notcat 2 – gs?

0 Answers  


What happens if both JOBLIB & STEPLIB is specified ?

0 Answers  


How can u know the current date using jcl?

2 Answers   iNautix, Wipro,


Explain about Cobol Subroutines

1 Answers  


what is force complete

2 Answers   IBM,






which utility is used a dummy utility?

0 Answers   IBM,


My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You should not use any input dataset to do this. I'm not sure whether you may use any utility for this purpose?

2 Answers   HCL,


What is a procedure?

1 Answers  


i have step1,step2,step3 from where can i start coding cond parameter ?

2 Answers   Verizon,


MOD, DELETE; What does a disposition of (,DELETE) mean ?

3 Answers  


Is CPU time assigned to a JOB and JOBSTEP BOTH, by default ?

4 Answers   IBM,


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

14 Answers  


Categories