a job have 5 steps and it will executes a proc which have
5steps in it. now i have to execute step3 only when step2 of
proc executes successfully
Answers were Sorted based on User's Feedback
Answer / vinay sonar
You can de it by using COND parameter in step3.
Use always true condition which is
COND=(0,GT,STEP2) OR COND=(4095,LT,STEP2)
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vinay srivastava
Code in calling JCL :
//JOB1 JOB ...
.
//Pstep EXEC PROC1,COND.STEP3=(0,LT,STEP2)
.
.
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / amy
//job1 job a123,'amy',class=a
//proc1 proc
//step01 exec pgm=prog1,
//step02 exec pgm=prog2,
//step03 exec pgm=prog3,(0,eq,step02)
//step04 exec pgm=prog4,(0,eq,step02)
//step05 exec pgm=prog5,(0,eq,step02)
// pend
//step001 exec pgm=proc1
//step002 exec pgm=prog6
//step003 exec pgm=prog7
//step004 exec pgm=prog8
//step005 exec pgm=prog9
//
save it as abc.xyz(member)
now write an another jcl
//job2 job a123,'AMY'
//step1 exec pgm=IEBEDIT
//sysut1 dd dsn=abc.xyz(member)
//sysut2 dd sysout=(b,intrdr)
//sysin dd *
edit start=job1,type=include,stepname=(step001,step003)
/*
WHEN YOU WILL SUBMIT THIS JOB2 THEN ONLY two steps of
proc1(step01 and step02) and
step003(pgm=prog7) will be executed.
Is This Answer Correct ? | 0 Yes | 0 No |
How to release the Output HELD by using HOLD = YES on DD statement ?
What does a disposition of (MOD,DELETE,DELETE) mean ?
which utility is used to sort a file in jcl?
WORKING-STORAGE SECTION. 1 GROUP-ITEM. 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50. 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP. PROCEDURE DIVISION. MOVE ZERO TO GROUP-ITEM. ADD 50 TO AMOUNT-1. DISPLAY AMOUNT-1. STOP RUN.
How can I override a dsn that is contained in a proc called by another proc? I need to do the override in the calling JCL.
what is a MODELDSCB?
What is dummy parameter in JCL??
why do we use file-aid wht r the adv of using file-aid thn in ispf
I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?
What are the parameters that are used in creating a gdg?
What are the kinds of job control statements?
What do you know about jcl?