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 | 22 No |
What is the function of a dd statement?
what will be the error code if duplicate key of VSAM file is found?
how to resolve sb37,sd37 se37 abends
Explain about Cobol Subroutines
A job has 90 steps i want to execute only step7 and step15
We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?
Where & How Do You Code Identifier In Jcl?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?
What does the one advantange of using IEBUPDTE?????
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
What dd statement is used to supply the name of a dataset?