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

What do you understand by the terms: joblib and steplib?

626


What is the syntax of JCL statement?

700


IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

1630


what is the purpose of coding notify parameter in job statement?

688


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

659






what is DSN parameter and DISP parameter is used for?

681


Explain the function of //cntl statement?

661


What does a disposition of (new,catlg,keep) for a dsn mean?

619


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

949


Explain the purpose of dd * statement in jcl?

643


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

5066


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

1811


What is the function of job statement in jcl?

638


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1358


Mention the types of job control statements?

691