View previous topic :: View next topic
|
Author |
Message |
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
Hi,
i have a job with following criteria.
Step 1; create a new GDG version (+1) as X.Y.Z(+1)
Step 2: create one more version of same GDG as X.Y.Z (+2)
Step 3: In this step use both the version as i/p file to a program.
Code: |
//ERM EXEC PGM=PROG1
//FILE1 DD DSN=X.Y.Z(+1),DISP=SHR
//FILE2 DD DSN=X.Y.Z(+2),DISP=SHR
|
Is this feasible Can (+2) version be created and refernced in same job |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
Did you make a try ,what happened? |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
this was aked in an interview ...
i didn't try.. |
|
Back to top |
|
|
Naresh Kumar Reddy P
New User
Joined: 24 May 2007 Posts: 8 Location: Bangalore
|
|
|
|
Yes! You can create & reference the second generation in the same job using +2.
Thanks
Reddy |
|
Back to top |
|
|
srebba Warnings : 1 New User
Joined: 26 Apr 2007 Posts: 37 Location: USA
|
|
|
|
Yes,
U can create adn reffered till limit is reached,
Thank you, |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
While you can refer to the +1, +2, etc version in the same job, it may complicate any restart procedures. |
|
Back to top |
|
|
srebba Warnings : 1 New User
Joined: 26 Apr 2007 Posts: 37 Location: USA
|
|
|
|
I dont understand why its much complicate. while restart ....
Simpy make the changes +2 to 0 and +1 to -1 GDGs
Please let me know if this wrong
Thank you
sree |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
As noted in an earlier post, some schedulers, including Control-M's Control-R restart facility, handle the gen# adjustment for you. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If/when you find yourself trying to restart a very old job that has been "enhanced" many times to include multiple generations of multiple gdg files and uses some convoluted condition code testing, you will get an appreciation of this
Quote: |
Simpy make the changes +2 to 0 and +1 to -1 GDGs
Please let me know if this wrong |
I would not say that your idea is wrong, just that some places have jobstreams that in themselves are not simple and restarts are an adventure.
Unfortunately, some of the places i've seen with this type of jobs also have not invested in good scheduling software. |
|
Back to top |
|
|
|