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

What are the parameter we cannot use in procedure?

635


How can a fb file convert to vb file using sort program?

802


Explain the function of //jcllib statement?

698


How do you submit a job for execution?

635


What is jcl in mainframe, and how many types of jcl statements are there for a job?

628






Explain the function of dd disp parameter?

593


Define concatenating?

663


List the different jcl statements that are not permitted in the procedures?

634


whats the diff bw the evaluate also and and?

1850


what is the use of IEBGENER utility?

654


Explain the hierarchy levels in jcl?

1116


what operation is performed by job statement?

654


What are the rules employed while naming the steps in a job?

654


how do you code a null statement?

770


How would you understand error(execution phase)?

621