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 is the difference between perform varying and perform

1 Answers  


How to delete generations of gdg without deleting gdg base?

3 Answers  


Explain the function of a dd statement?

0 Answers  


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

3 Answers   Wipro,


What is default if we don't specify RD parameter at all ?

1 Answers   IBM,






Which storage devices are grouped under DASD and SYSDA ?

1 Answers   IBM,


How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.

10 Answers   Lehman Brothers,


what is the JCL statement consists of?

0 Answers  


I have 5 generations in my GDG. How do I code in the JCL to consider all the 5 versions of the GDG ?

5 Answers   Xansa,


Suppose I have seven jobs to do, but I want to hold one than how can I do this?

1 Answers  


What is the use of disp parameter?

0 Answers  


What is RESTART? How is it invoked?

8 Answers   HSBC,


Categories