IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

restart in a jcl having same step names


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Atlanta, (USA)

PostPosted: Wed Jan 11, 2006 2:28 pm
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Wed Jan 11, 2006 2:46 pm
Reply with quote

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 icon_wink.gif
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Jan 11, 2006 3:14 pm
Reply with quote

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
View user's profile Send private message
vikasc4

New User


Joined: 11 Dec 2005
Posts: 32

PostPosted: Wed Jan 11, 2006 3:30 pm
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Wed Jan 11, 2006 3:40 pm
Reply with quote

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
View user's profile Send private message
vikasc4

New User


Joined: 11 Dec 2005
Posts: 32

PostPosted: Wed Jan 11, 2006 5:59 pm
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Wed Jan 11, 2006 6:05 pm
Reply with quote

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
View user's profile Send private message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Thu Jan 12, 2006 9:50 am
Reply with quote

Hi,

I totally agree with khamarutheen. muffirulz do give us ur requirement in detail.

Regards,
Nikhil .S.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jan 13, 2006 7:11 am
Reply with quote

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
View user's profile Send private message
pa1chandak
Currently Banned

New User


Joined: 31 Jan 2006
Posts: 55

PostPosted: Thu Feb 02, 2006 10:01 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top