i have 5 steps to execute in that i want to skip 3nd step
and start execute from forth step how can u do this.
Answer Posted / y@$w@nth
I think u want to execute only 1,2,4,5 steps...for this the
solution is
//userid01 JOB 'sample','test',class=a,restart=step3
//step1 exec pgm=prog1
//step2 exec pgm=prog2
//step3 exec pgm=prog3,cond=(0,LE,step2)
//step4 exec pgm=prog4
//step5 exec pgm=prog5
//
So in the above case step3 won't execute only 1,2,4,5 steps
will execute.
If ur question is that u want to restart from step4 that
means u want to execute only 4,5 steps then we can go for
restart parameter at job card level..
//userid01 JOB 'sample','test',class=a,restart=step3
//step1 exec pgm=prog1
//step2 exec pgm=prog2
//step3 exec pgm=prog3,cond=(0,LE,step2)
//step4 exec pgm=prog4
//step5 exec pgm=prog5
//
Cheers....
Y@$w@nth
| Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
Can we use DISP=SHR in output file in JCL
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
What do you understand by the term notcat 2 – gs?
What are the parameter we cannot use in procedure?
What is Cataloged Procedures?
How can the disposition of sysout datasets be set for an entire jobstream?
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?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
How to pass the parameter in parm using linkage section ? (syntax)?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
what are the statements that are not valid to be included in an include statement?
what sort card you will use to copy the data from one dataset to another dataset?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?