If there are five steps in a JCL i have to execute the 3rd
step, bypass the 4th step and execute the 5th step how do i
do this?

Answer Posted / sivakumar sekharannair

1)Give restart=step03 in job card
2)in step04 give cond=(0,le)
3)step05 no condition neeeded

sample jcl is given below



//AAUT001D JOB ,'TEST',MSGLEVEL=(1,1),CLASS=C,MSGCLASS=H,
// NOTIFY=&SYSUID,RESTART=STEP003

//STEP001 EXEC PGM=AUT0EMP
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*

//STEP002 EXEC
PGM=AUT0EMP
//EMPLOY1 DD
DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD
SYSOUT=*
//SYSOUT DD
SYSOUT=*

//STEP003 EXEC PGM=AUT0EMP
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*

//STEP004 EXEC PGM=AUT0EMP,COND=
(0,LE)
//EMPLOY1 DD
DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD
SYSOUT=*
//SYSOUT DD
SYSOUT=*

//STEP005 EXEC PGM=AUT0EMP
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the job statement in jcl?

653


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

649


WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

854


How can values be passed from the job stream to an executable program?

875


What dd statement is used to supply the name of a dataset?

779






What are the parameter we cannot use in procedure?

640


What is the purpose of dd?

728


when does a dataset go uncataloged?

835


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

679


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

626


How jcl is used for testing batch programs?

721


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

923


what sort card you will use to copy the data from one dataset to another dataset?

730


what operation is performed by job statement?

662


How to pass data to a program that is coded in an exec statement?

827