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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about ISPF/TSO Commands

1308


what sort card you will use to copy the data from one dataset to another dataset?

725


which utility is used to sort a file in jcl?

745


When output dataset space is required, what quantity categories are used?

824


How can a stopped job be started again?

707






whats the diff bw the evaluate also and and?

1850


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1579


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1982


What are s0c1, s0c4, s0c5, s0c7 and socb?

697


A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

732


How to submit a jcl from cics?

658


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

716


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

1485


What are some jcl statements that are not allowed in procedures?

724


how you can access an uncataloged dataset in a JCL?

651