View previous topic :: View next topic
|
Author |
Message |
Ladha Warnings : 1 New User
Joined: 15 Sep 2006 Posts: 4 Location: Pune
|
|
|
|
Hi,
Suppose I have the following generations
A.B.C.D.G0001V00 -> created on Monday
A.B.C.D.G0002V00 -> created on Tuesday
A.B.C.D.G0003V00 -> created on Wednesday
A.B.C.D.G0004V00 -> created on Thursday
A.B.C.D.G0005V00 -> created on Friday
If for some reason i come to know that the data in the file created on Tuesday is corrupted and I have to DELETE the same. After deletion, I want to recreat the same generation (A.B.C.D.G0002V00). Is it possible? How? Please help!
Many Thanks... |
|
Back to top |
|
|
krishnareddymsc
New User
Joined: 08 Jan 2007 Posts: 9 Location: Bangalore
|
|
|
|
upto my knowledge, we can delete a GDG generation...but we cant create a gdg with the same version.....can any bdy give any suggestions....
|
|
Back to top |
|
|
Ladha Warnings : 1 New User
Joined: 15 Sep 2006 Posts: 4 Location: Pune
|
|
|
|
Hi,
See the question here is "After the delete job is over, can we recreate the same generation somehow"
Before the job is finished, I am pretty sure that we can create the generation with giving (-3) instead of (+1)...
Hope that clarifies my question further...
Thanks. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
This would be a perfect opportunity to catalog a dataset with a version number change. So, instead of deleting A.B.C.D.G0002V00, just catalog a dataset for the same generation with a new version, i.e. A.B.C.D.G0002V01.
Optionally, you could first delete A.B.C.D.G0002V00, then catalog a replacement as A.B.C.D.G0002V00.
Quote: |
I am pretty sure that we can create the generation with giving (-3) instead of (+1)...
|
No, you can't. |
|
Back to top |
|
|
Ladha Warnings : 1 New User
Joined: 15 Sep 2006 Posts: 4 Location: Pune
|
|
|
|
Hi,
Can you please further elaborate! As to why I can't give (-3) in the same job, say in the next step after the delete step.
e.g.
step01 -> A.B.C.D(-3),disp=delete
step02 -> A.B.C.D(-3),disp=(new,catlg,delete)
I think this should create the required generation again...
Thanks. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
This is from Chapter 3.10.3 Relative Generation Number of the z/OS V1R7.0 DFSMS Using Data Sets Manual:
Quote: |
Though any positive relative generation number can be used, a number greater than 1 can cause absolute generation numbers to be skipped. For example, if you have a single step job, and the generation being cataloged is a +2, one generation number is skipped. However, in a multiple-step job, one step might have a +1 and a second step a +2, in which case no numbers are skipped.
|
It's hard to say for absolutely sure. Did a test prove out your theory? |
|
Back to top |
|
|
Rajen
New User
Joined: 05 May 2005 Posts: 61
|
|
|
|
Hi Ladha,
In stead of giving
step01 -> A.B.C.D(-3),disp=delete
step02 -> A.B.C.D(-3),disp=(new,catlg,delete)
you can try below code. You skip step01 which deletes the dataset
and directly use step02 and in step02 u can give DISP=OLD,
it would be like
step02 -> DD DSN=A.B.C.D.G0002V00,disp=old
Here I assume you dont want update other versions of GDG and want to change only the 2nd version.
Let me know if it worked or not. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you have not already deleted the "bad" file, you should be able to write over it - specify the output DD with the fully qualified dsn and DISP=OLD. . . |
|
Back to top |
|
|
|