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 |
Explain about CBL/PROCESS statement syntax
01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
if we compile the cobol+ db2 program now ofter 5 years we need to compile again?
How to compare 2 files using File-Aid?
can anyone explain me about sort in jcl with inrec and outrec ?
How to execute 300 steps in a Job?
What parameters can be used to limit the number of records written to a sysout dataset?
what is DSN parameter and DISP parameter is used for?
How much is memory space involved, when we code BLOCKSIZE,TRK & CYL ?
How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL.
What are hierarchy levels in jcl?
Hi, If a catolog proc has another proc in it, both have ddnames dd1 and dd2. what proc will override if gave override parameter. Here both have same step names.