|
View previous topic :: View next topic
|
| Author |
Message |
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
| Can we use same stepname in more than one step in single job. |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
| Yes, it makes it easier to identify what is running, and also for restarts. |
|
| Back to top |
|
 |
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
| 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 |
|
 |
0d311
Guest
|
|
|
|
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.  |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
| Ooooooooops, eyeball finger interaction obviously bypassed the brain step for my previous reply |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Don't ya just hate when that happens. . .  |
|
| Back to top |
|
 |
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
| 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 |
|
 |
0d311
Guest
|
|
|
|
| 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!
Thanks for the enlightenment. Never tried that one before ;) |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
|
|