If a job has 3 steps and step 1 and step 3 should get
executed and step 2 should not get executed irrespective of
the return code from the previous steps. How can it be done?
Answer Posted / rameshkillampalli
Small correction - stepname=(step2) will allow job to run
step1 and step3 and exclude step2 from execution
//XXXXXXXX JOB (XXX),'XXXXXXXXXXXXXXXXX',MSGLEVEL=(1,1),
// CLASS=D,PRTY=5,MSGCLASS=T,NOTIFY=&SYSUID
//STEP01 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXXXXXXX.XXXX.XXXX(MEMBER NAME),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=(STEP2)
/*
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what is the JCL statement consists of?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
how do you code a null statement?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
what happens in conversion stage in job processing?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
What are hierarchy levels in jcl?
How does the jcl specify the job to os?
What are the utility programs in jcl?
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
how do you access an uncataloged dataset in a jcl?
What is the syntax of JCL statement?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?