How to skip first step of a job? Can we use COND on the
first step?
Answers were Sorted based on User's Feedback
Answer / abhijit18in2002
Check this JCL you can use COND=ONLY
//X5PAKR5J JOB (X5P,AKR,5,00000),'TEST CONDITION',
// MSGLEVEL=(1,1),CLASS=Z,MSGCLASS=Z,
// NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEFBR14,COND=ONLY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP2 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP3 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//SYSIN DD DUMMY
/*
O/P
STEP1-STEP WAS NOT RUN BECAUSE OF COND = ONLY
STEP2-STEP WAS EXECUTED - COND CODE 0000
STEP3-STEP WAS EXECUTED - COND CODE 0000
| Is This Answer Correct ? | 34 Yes | 6 No |
Answer / amrita
We can use RESTART in the Job card. For example if in the
Job, proc has been called from Step name STEP01 and the we
want to skip first step from proc viz PROCSTEP01 i.e. we
want our Job to start from Proc step 2 viz PROCSTEP02, use
following syntax in the Jobcard -
RESTART=(STEP01.PROCSTEP02).
| Is This Answer Correct ? | 6 Yes | 13 No |
Answer / challa srinivas
Use COND=(0,LE) in step 1. It will bypass step1.
| Is This Answer Correct ? | 3 Yes | 23 No |
What is notcat 2 - gs?
I have a jcl which is using 2 data sets i want to override those data sets. how can i override the files within the JCL. Give me the syntax. Make sure that it is not calling any Proc.
A job has 150 steps i want to execute only 57th step
What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring the length field in Linkage Section?
what is the alternative to model parameter?
i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?
//step#3 exec pgm = hkbc762 what is wrong with the syntax?
What is the use of IEBGENER ?
what is the use of IEBGENER utility?
If your job fails at particular step then what would be the return code for next steps
What is a GDG
Explain how can the disposition of sysout datasets be set for an entire jobstream?