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
Answer Posted / 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 |
Post New Answer View All Answers
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?
Explain how can a stopped job be started again?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
What is Cataloged Procedures?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
how you will the direct the data to spool using sysout option?
whats the diff bw the evaluate also and and?
How do you submit a job for execution?
how you can access an uncataloged dataset in a JCL?
How can return codes be tested before execution of a job step?
Explain the function of a dd statement?
Explain how can the submitting users racf authority be overridden in a job stream?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
What is the purpose of dd dummy statement?