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
 

 

Can we use same stepnames in single job?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can we use same stepnames in single job?
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: 8593
Location: Back in jolly old England

PostPosted: Sun Jun 24, 2007 4:10 pm    Post subject:
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    Post subject: Re: Canwe use samw stepnames in single job?
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    Post subject:
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

Site Director


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

PostPosted: Sun Jun 24, 2007 5:35 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sun Jun 24, 2007 6:10 pm    Post subject:
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

Site Director


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

PostPosted: Sun Jun 24, 2007 6:27 pm    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Jun 25, 2007 12:51 pm    Post subject:
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    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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 4 Mon Mar 27, 2017 3:59 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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