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
write a jcl to execute a job by 7:00 am on jan 20,1986?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What is the difference between the positional and keyword parameters? Give examples.
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
How to submit a jcl from cics?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
What is the function of the dd avgrec keyword in sms datasets?
Explain the function of the steplib dd statement?
Explain about LMFREE�free data set from its association with data ID
Mention the types of job control statements?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
Why include statement is used in a jcl?
How to do automated restart when a job abend?
What is catelog procedure and how many catelog procedure to use in one job?
What is job control language?