There are 5 steps in a Job. How to bypass the first step
by making use of only COND Parameter and not using any
Restart and IF/THEN/ELSE parameter?
Answers were Sorted based on User's Feedback
Answer / ajayre
Guys Sorry to say Option Cond=(O,LE) wont work in this case.
Please find the below .
//X5PAKR5J JOB (X5P,AKR,5,00000),'TEST CONDITION',
//MSGLEVEL=(1,1),CLASS=Z,MSGCLASS=Z,PRTY=04,NOTIFY=&SYSUID
//STEP5 EXEC PGM=IEFBR14,
// COND=only
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP6 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP7 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP8 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
Result:-
STEP5 - STEP WAS NOT RUN BECAUSE OF COND = ONLY
STEP5 - STEP WAS NOT EXECUTED.
STEP6 - STEP WAS EXECUTED - COND CODE 0000
STEP7 - STEP WAS EXECUTED - COND CODE 0000
STEP8 - STEP WAS EXECUTED - COND CODE 0000
COND=(0,LE) will not work.Please try it .
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / chiru
COND=ONLY will by pass the first step.I checked and this
is working.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / nagesh
There is no way you can skip the first step of a job from
executing. However further steps can be bypassed by coding
cond=(o,le,).
| Is This Answer Correct ? | 8 Yes | 6 No |
Answer / sivakumar sekharannair
That was correct. cond=(0,le) won't work for first step of
jcl.
Sysout details when cond=(0,le) was coded
-JOBNAME STEPNAME PROCSTEP RC
-ESNKMAA PS0010 00
-ESNKMAA PS0020 00
-ESNKMAA PS0030 00
Sysout details when cond=ONLY was coded
-ESNKMAA PS0010 FLUSH
-ESNKMAA PS0020 00
-ESNKMAA PS0030 00
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / amit
Restart the Job from 2nd step: First step will be Skipped
automatically :)
| Is This Answer Correct ? | 0 Yes | 0 No |
what is check pending option
how to resolve soc-7 ? please tell me
I have a PDS and want to omit few rows of all members of a PDS. How to do it?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
i have five step in jcl.my forth step is gdg.gdg was abend.when will job complete,hoe to handle you
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
How to find the length of variable length copybook using fileaid ??
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?
I have Job A and Job B. I want to trigger Job B from Job A. Please advise.
What is Backward Referencing ?