IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

If in between generations deleted what will happen


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amitkoshti
Warnings : 1

New User


Joined: 04 Oct 2006
Posts: 10
Location: Pune

PostPosted: Mon Jan 01, 2007 4:36 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jan 01, 2007 5:26 pm
Reply with quote

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
View user's profile Send private message
amitkoshti
Warnings : 1

New User


Joined: 04 Oct 2006
Posts: 10
Location: Pune

PostPosted: Mon Jan 01, 2007 8:17 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jan 01, 2007 8:43 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Rexx to list generations of GDGs and ... CLIST & REXX 3
No new posts RACF- How to find the Last access of ... All Other Mainframe Topics 7
No new posts What will happen if we dont code STOP... COBOL Programming 4
No new posts Compare each GDG Generations to other... JCL & VSAM 13
No new posts Editing "member generations"... TSO/ISPF 1
Search our Forums:

Back to Top