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

Can we use same stepnames in single job?


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

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Sun Jun 24, 2007 4:07 pm
Reply with quote

Can we use same stepname in more than one step in single job.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Jun 24, 2007 4:10 pm
Reply with quote

Yes, it makes it easier to identify what is running, and also for restarts.
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Sun Jun 24, 2007 4:41 pm
Reply with quote

In a job, there are 2 steps, both are named as step1 and step1. Then how will u restart the particular step. If u give Restart=step1, then will that consider first one or second one???
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Sun Jun 24, 2007 4:44 pm
Reply with quote

Hi expat,

I'm assuming by same stepname, Prabha meant something like this?

//STEP001 EXEC PGM=IEBGENER
...
//STEP001 EXEC PGM=SORT
...

As I know, this wouldn't work if we have the same stepnames contained in a single or same JCL (although for a job, this may be possible since he/she could have multiple called procs.. )

Please let me know if I'm wrong. Thanks. icon_smile.gif
Back to top
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Jun 24, 2007 5:35 pm
Reply with quote

Helloi,

Systems with good standards will not permit any step name to be duplicated.

Yet another of the things that even when it can be done should not be done.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Jun 24, 2007 6:10 pm
Reply with quote

Ooooooooops, eyeball finger interaction obviously bypassed the brain step for my previous reply
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Jun 24, 2007 6:27 pm
Reply with quote

Don't ya just hate when that happens. . . icon_smile.gif
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Jun 25, 2007 2:41 am
Reply with quote

Quote:
In a job, there are 2 steps, both are named as step1 and step1. Then how will u restart the particular step. If u give Restart=step1, then will that consider first one or second one???


RESTART=step1 will start execution from first one.

Quote:
As I know, this wouldn't work if we have the same stepnames contained in a single or same JCL

This works. Just try yourself.[/quote]
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Mon Jun 25, 2007 8:49 am
Reply with quote

Quote:
As I know, this wouldn't work if we have the same stepnames contained in a single or same JCL
This works. Just try yourself.


Hi Devzee,

Yes, you're right! icon_smile.gif
Thanks for the enlightenment. Never tried that one before ;)
Back to top
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 25, 2007 12:51 pm
Reply with quote

Hello,

Now that you know this can be done - go forth and do not do this.

[sarcasm] Or you might name every step in every job STEP1 and never be bothered with pesky restart considerations again. . . [/sarcasm]
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 How to append a PS file into multiple... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts Merge a variable number of records fr... DFSORT/ICETOOL 5
Search our Forums:

Back to Top