View previous topic :: View next topic
|
Author |
Message |
muffirulz
New User
Joined: 14 Sep 2005 Posts: 74 Location: Atlanta, (USA)
|
|
|
|
Hi,
Suppose in my jcl i have 2 job steps with same name, and if the job is abended in the second job step, then what should be given in the restart to restart the job from the second job step.
Regards |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi Muffirulz,
As per my knowledge can have a same name for two steps but as per said it is little bit difficult to restart from the second step.. so why do give same name for two steps??? is there any case like that |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
HI,
I also agree with khamarutheen. It will be very difficult or not possible to restart from second step if we give same step name.
Best solution for this to use different stepname.
Regards
Rupesh |
|
Back to top |
|
|
vikasc4
New User
Joined: 11 Dec 2005 Posts: 32
|
|
|
|
hi,
In this case at first step you can use COND=ONLY, This will bypass this step and execution will start from the scond step.
I think this can solve your problem.
Regards
Vikas |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi Vikas,
Right but if in the case two same step names with large interval
Eg. Step1
Step2
3
.......
Step1
How it can ???? |
|
Back to top |
|
|
vikasc4
New User
Joined: 11 Dec 2005 Posts: 32
|
|
|
|
hi k.a.khamaurutheen,
COND=ONLY will bypass the step on which it is written. And if there are many steps as you are telling then from my view point you have to right this(cond=only) in each and every step before the desire step which you want to execute.
There may be some other way exist which is better then this but i don't have idea. But this will certainly produce the desired result.
CORRECT ME IF I AM WRONG.......
WAITING FOR ANY OTHER VIEW....
REGARDS
VIKAS |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi Vikas,
Quote: |
you have to right this(cond=only) in each and every step before the desire step which you want to execute.
|
It is not applicable in practical point of view.. Many steps may have Their own individual condition.. K..
Should not confuse more halo muffirulz Say what is requirement and do got any other solution plz post it. let us also learn that technique.. |
|
Back to top |
|
|
nikyojin
New User
Joined: 05 Oct 2005 Posts: 94
|
|
|
|
Hi,
I totally agree with khamarutheen. muffirulz do give us ur requirement in detail.
Regards,
Nikhil .S. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Everything in Muffirulz' post indicates he has a 2 step job, both having the same stepname.
Vikas' solution seems to address the problem as stated.
P.S. It sounds like a contrived interview ques. |
|
Back to top |
|
|
pa1chandak Currently Banned New User
Joined: 31 Jan 2006 Posts: 55
|
|
|
|
I WANT YOU TO PAY ATTENTION ON THI
STEPNAME SHOULD BE UNIQUE IN THESE FIVE CASES
1.RESTART
2.REFERBACK
3.WHEN USING CONDITION CODE (LIKE COND=(4,LT,STEP1))
4.OVERRIDDING PARAMETER
5. IF THEN ELSE
IF YOU ARE NOT USING ANY ONE OF THESE , THEN NO PROBLEM
YOU CAN HAVE SAME STEP NAMES.
SO FOR RESTART STEP NAME SHOULD BE UNIQUE
IF I AM WRONG SOMEWHERE PLEASE CORRECT ME
THANK YOU
DO SEND ME THE REPLY
PAWAN
09822546416
// THE ONE I LOVE , I SHALL NEVER BLAME // |
|
Back to top |
|
|
|