Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

If in between generations deleted what will happen

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: If in between generations deleted what will happen
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: 3158
Location: Tucson AZ

PostPosted: Mon Jan 01, 2007 5:26 pm    Post subject: Re: if in between generations deleted what will happen
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    Post subject: Re: if in between generations deleted what will happen
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: 3158
Location: Tucson AZ

PostPosted: Mon Jan 01, 2007 8:43 pm    Post subject: Re: if in between generations deleted what will happen
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare each GDG Generations to other... Ayyappa1 JCL & VSAM 13 Tue Jun 28, 2016 1:48 pm
No new posts Editing "member generations"... Ricardo Viegas TSO/ISPF 1 Tue Dec 29, 2015 7:27 pm
No new posts Count the number of rows updated or d... Chetan Kumar DB2 6 Tue Jul 14, 2015 7:57 pm
No new posts Already written data in VSAM got dele... Tanuz JCL & VSAM 6 Fri Feb 27, 2015 2:01 pm
No new posts Read all GDG generations, execept las... knobi JCL & VSAM 5 Fri Dec 12, 2014 12:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us