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 |
how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data from mainprogram but i need it from JCL directly
what is inrec fields and outrec fields in sorting
how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks in advance.
How can i execute 5th step without executing first 4 steps?
whats the diff bw the evaluate also and and?
what is use of dcb parameter in dd statement?
what is DSN parameter and DISP parameter is used for?
wt will happen to the step of a job if u code COND=ONLY
What is the difference between catalogue procedure and In-Stream procedure?
I have two input SORTIN files and We need to create one SORTOUT file which contains data of both input files. What is the SortCard for this?. Suppose the length of the both files are different, then How we do it? Please reply ASAP
What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?
how can i use the parameters decalred in main pgm in sub pgm