In my job I have 6 steps. Step01,02,03...step06.
after executing step02 i want to skip step03 and want to
execute step04. and once step04 is done then I want to go
back and execute step03. once step03 is completed I want
execute step05, 06 and so on... can any one tell me how do
i do that???

Answer Posted / anil sana

You can do that using IEBEDIT. Pls read JCL manual for more
details. I am citing an example below.

The member XXXXX in SYSUT1 contains the job and steps to be
executed.

//STEP0001 EXEC
PGM=IEBEDIT
//SYSPRINT DD
SYSOUT=*
//SYSOUT DD
SYSOUT=*
//SYSUT1 DD DSN=ANIL.SANA(XXXXX),DISP=SHR
//SYSUT2 DD SYSOUT=
(*,INTRDR)
//SYSIN DD
*
EDIT START=ANILPROC,TYPE=INCLUDE,STEPNAME=
(STEP2,STEP4,STEP3,STEP5......)
/*

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need exexution process for JCL programs

1843


what is SOC4 error?

732


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5058


What is the use of symbol // in jcl?

918


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

614






What parameter of the job statement is used to limit the cpu time consumed by the job?

832


Can an individual step be restricted from using all the jobs allowed cpu time?

1003


which parameter is use to declare the name of dataset in dd statement?

724


Is their any limit for data sets?

699


what are the types of abends that occur on job failure? And explain the possible causes of these

1112


How does the jcl specify the job to os?

683


How does jcl act on code(if you take a cobol program)?

703


What is the difference between the positional and keyword parameters? Give examples.

698


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?

8661


if the submitter of a job wants to inform another user about the job completion, how can it be done?

745