How to skip first step of a job? Can we use COND on the
first step?

Answers were Sorted based on User's Feedback



How to skip first step of a job? Can we use COND on the first step?..

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

How to skip first step of a job? Can we use COND on the first step?..

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

How to skip first step of a job? Can we use COND on the first step?..

Answer / challa srinivas

Use COND=(0,LE) in step 1. It will bypass step1.

Is This Answer Correct ?    3 Yes 22 No

Post New Answer

More JCL Interview Questions

What is the function of a dd statement?

0 Answers  


what will be the error code if duplicate key of VSAM file is found?

1 Answers   HSBC, Kings,


how to resolve sb37,sd37 se37 abends

3 Answers   Keane India Ltd,


Explain about Cobol Subroutines

1 Answers  


A job has 90 steps i want to execute only step7 and step15

3 Answers   Cognizant,






We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?

2 Answers   CTS, IBM,


Where & How Do You Code Identifier In Jcl?

0 Answers   IBM,


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 ?

0 Answers   IBM,


What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?

9 Answers   GE, Xansa,


What does the one advantange of using IEBUPDTE?????

2 Answers  


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

0 Answers  


What dd statement is used to supply the name of a dataset?

0 Answers  


Categories