Page 1 of 1

Is it possible to execute 6 to 8 steps among 10 steps?

Posted: Mon Oct 13, 2014 4:51 pm
by Natvar Singh
Hi,

Can any body plz explain following questions

1. There are 10 steps in my job will it possible to execute 6 to 8 steps only ? I said - RESTART=STEP6in Job card and a // after 10th step. Interviewer said there are more ways to do it. Can someone please help what are other ways?

2. He then asked me if it is possible to by pass 6 to 8 steps other than using comment? I did not know what he meant so could not answer.

3. Is it possible to execute step 5 and then step10. He said, you could use RESTART for step5 to ztart from there but what parametr will be needed for step10? I did not know the answer.

Please help me.

Re: Is it possible to execute 6 to 8 steps among 10 steps?

Posted: Tue Oct 14, 2014 12:06 pm
by Anuj Dhawan
1. It's correct. Possibly interviewer wanted to hear about IEBEDIT too.

2. IEBEDIT should do this. I think, it's a hint for the previous remark from him...

3. I don't think there is an easy way out apart from editing the JCL itself or make use of IEBEDIT.

Hope this helps.

Re: Is it possible to execute 6 to 8 steps among 10 steps?

Posted: Tue Oct 14, 2014 3:01 pm
by Chandan Yadav
Yes I agree..It's easily doable using IEBEDIT utility.

But my question here do we really used IEBEDIT in real world.

I am trying to find real time scenario since long..if anyone throw some light on this I will be very thankful

Regards,
Chandan

Re: Is it possible to execute 6 to 8 steps among 10 steps?

Posted: Tue Oct 14, 2014 4:21 pm
by enrico-sorichetti
But my question here do we really used IEBEDIT in real world.
in the real world You would not have the problem of running steps 6 to 8 out of 10 :mrgreen:

Re: Is it possible to execute 6 to 8 steps among 10 steps?

Posted: Tue Oct 14, 2014 4:35 pm
by Anuj Dhawan
On a serious note I agree with Enrico.

JCL was made to execute the things in batch - one after other - executing steps by skipping some in between is not what it is supposed to do, in general. However, it might be true (a hypothetical example in the context of original question) - say step6 creates a file, which gets modified in step7 and sent to some e-mail ID in step8. A fine day, the Job executed well but the step6 or step7 malfunctioned by some means -- well, you want to execute step6, 7 and 8 now - IEBEDIT can be handy among other ways for such a situation. (God forbid, such shops do not exist.)

Re: Is it possible to execute 6 to 8 steps among 10 steps?

Posted: Tue Oct 14, 2014 4:55 pm
by Chandan Yadav
yes I agree with both Enrico and Anuj :)

Re: Is it possible to execute 6 to 8 steps among 10 steps?

Posted: Wed Oct 15, 2014 3:40 pm
by Ashu Jain
Anuj Dhawan wrote: (God forbid, such shops do not exist.)
hahaha. Why are you saying so?

Re: Is it possible to execute 6 to 8 steps among 10 steps?

Posted: Wed Oct 15, 2014 5:07 pm
by Anuj Dhawan
Because that kills the whole purpose of executing something in batch...

Re: Is it possible to execute 6 to 8 steps among 10 steps?

Posted: Tue Dec 30, 2014 11:15 am
by Natvar Singh
Thanks for the answers and great discussion. This has helped me.

:D