View previous topic :: View next topic
|
Author |
Message |
amitkoshti Warnings : 1 New User
Joined: 04 Oct 2006 Posts: 10 Location: Pune
|
|
|
|
hi
Suppose there are 5 generation files under GDG dataset
PAYROLL.MONTH.G0001V00
PAYROLL.MONTH.G0002V00
PAYROLL.MONTH.G0003V00
PAYROLL.MONTH.G0004V00
PAYROLL.MONTH.G0005V00
Now if somebody deleted following generations:
PAYROLL.MONTH.G0002V00
PAYROLL.MONTH.G0004V00
Remaining generation are:
PAYROLL.MONTH.G0001V00
PAYROLL.MONTH.G0003V00
PAYROLL.MONTH.G0005V00
What will happen if we try to access generations 1, 2, 3, 4 and 5 serially or randomly? Please reply.
Regards
Amit |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
amitkoshti wrote: |
Remaining generation are:
PAYROLL.MONTH.G0001V00
PAYROLL.MONTH.G0003V00
PAYROLL.MONTH.G0005V00
What will happen if we try to access generations 1, 2, 3, 4 and 5 serially or randomly? |
Generation (+0) is G0005, (-1) is G0003, (-2) is G0001. What do you think would happen? |
|
Back to top |
|
|
amitkoshti Warnings : 1 New User
Joined: 04 Oct 2006 Posts: 10 Location: Pune
|
|
|
|
amitkoshti wrote: |
hi
Suppose there are 5 generation files under GDG dataset
PAYROLL.MONTH.G0001V00
PAYROLL.MONTH.G0002V00
PAYROLL.MONTH.G0003V00
PAYROLL.MONTH.G0004V00
PAYROLL.MONTH.G0005V00
Now if somebody deleted following generations:
PAYROLL.MONTH.G0002V00
PAYROLL.MONTH.G0004V00
Remaining generation are:
PAYROLL.MONTH.G0001V00
PAYROLL.MONTH.G0003V00
PAYROLL.MONTH.G0005V00
What will happen if we try to access generations 1, 2, 3, 4 and 5 serially or randomly? Please reply.
Regards
Amit |
Suppose PARROLL.MONTH.G0005V00 is a current generation and I am trying to access generations using following
//ddname1 DD DSN=PARROLL.MONTH(0),DISP=SHR
//ddname2 DD DSN=PARROLL.MONTH(-1),DISP=SHR
//ddname3 DD DSN=PARROLL.MONTH(-2),DISP=SHR
//ddname4 DD DSN=PARROLL.MONTH(-3),DISP=SHR
//ddname5 DD DSN=PARROLL.MONTH(-4),DISP=SHR
As PAYROLL.MONTH.G0002V00 and PAYROLL.MONTH.G0004V00 has been deleted, what will happen if i use above to access the generations? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
amitkoshti wrote: |
Suppose PARROLL.MONTH.G0005V00 is a current generation and I am trying to access generations using following
//ddname1 DD DSN=PARROLL.MONTH(0),DISP=SHR G0005
//ddname2 DD DSN=PARROLL.MONTH(-1),DISP=SHR G0003
//ddname3 DD DSN=PARROLL.MONTH(-2),DISP=SHR G0001
//ddname4 DD DSN=PARROLL.MONTH(-3),DISP=SHR G9999?
//ddname5 DD DSN=PARROLL.MONTH(-4),DISP=SHR G9998?
As PAYROLL.MONTH.G0002V00 and PAYROLL.MONTH.G0004V00 has been deleted, what will happen if i use above to access the generations? |
I'm not sure if it will reach back to the high numbers before it rolled or even if it will roll.
But if (-3) and (-4) don't exist, you will get abended just as if you named a DSN that doesn't exist.
If you just wanted all the remaining generations, I believe that omitting the generation number will concatenate the three remaining. |
|
Back to top |
|
|
|