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
which parameter is use to declare the name of dataset in dd statement?
When space is allocated for an output dataset, what units can be used?
How jcl work to handle various input output file operations?
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?
which parameter is used to check the syntax of a jcl without executing it?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
write a jcl to execute a job by 7:00 am on jan 20,1986?
Explain dd statement in jcl?
What parameter directs the output of the job log dataset?
Must tape dataset definitions include vol=ser specifications?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
when can a job time-out occur? How to overcome that?
What are steplib and joblib? What for they are used?
Explain in DD statement what is the use of DCB parameter?
whats the diff bw the evaluate also and and?