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.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / karan johar accenture
//step3 exec pgm=p3,cond=(4,GT,0)[0 means rc of step2]
//step4 exec pgm=p4,cond=(4,LE)
| Is This Answer Correct ? | 6 Yes | 3 No |
Answer / girish kumar
By using IEBEDIT we can do it
sysin dd *
edit type=exclude,stepname=(step3)
| Is This Answer Correct ? | 6 Yes | 5 No |
Answer / sachin
put cond=(o,LE) in step3
and in step4 keep cond =even
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mohan.chepuri
step3 use cond=(00,le) job wil be bypass in this case
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vinay sonar
put always true condition using cond parameter in step
eg //STEP2 DD PGM=IEBGENER,COND=(0,LT)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / krishna chaitanya
at jobcard cond(o,gt)
and then at step 3 cond(0,le)
and at step 4 (0,gt)
or
simply give restart step4
| Is This Answer Correct ? | 1 Yes | 2 No |
What are the 4 fields in dd statement?
What is the function of the steplib dd statement?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset?
i have 3 steps in my jcl, where i want to run only one step at a time depending on the variable. How should i give the condition statement... I have tried this with two steps which is working but not able to add condn for the 3rd step. can anyone help me... I want to know the cond stmt which i can code in step 3 and step4, so that only either step2 or step3 or step4 executes
Could anyone please suggest me what is the maximum length of data that can be pass as input in //sysin dd * This was asked in interview. TIA
//step#3 exec pgm = hkbc762 what is wrong with the syntax?
What is condition checking in jcl? Is this possible?
What do you feel makes a good program?
How I sort the records in a file and copy the first 10 records to another file
How to view the hexa decimal value thru file aid if copy book is not present for that particular data
what is check pending option