Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

restart in a jcl having same step names

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Kentucky, USA

PostPosted: Wed Jan 11, 2006 2:28 pm    Post subject: restart in a jcl having same step names
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: 680
Location: NJ

PostPosted: Wed Jan 11, 2006 2:46 pm    Post subject: JCL Steps
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: 464

PostPosted: Wed Jan 11, 2006 3:14 pm    Post subject: Re: restart in a jcl having same step names
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    Post subject:
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: 680
Location: NJ

PostPosted: Wed Jan 11, 2006 3:40 pm    Post subject: Same Step Name
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    Post subject:
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: 680
Location: NJ

PostPosted: Wed Jan 11, 2006 6:05 pm    Post subject: Same Step Name
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    Post subject: Re: restart in a jcl having same step names
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts Using Field names in FILEAID Batch CO... Atul Banke Compuware & Other Tools 2 Wed Jun 29, 2016 9:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us