MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Vsam File Reorg

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
Paulo Moreira
Beginner


Joined: 15 Sep 2004
Posts: 2
Topics: 1

PostPosted: Wed Sep 15, 2004 4:57 pm    Post subject: Vsam File Reorg Reply with quote

Anyone know how do I determine if a Vsam file need to be Reorg. ? I mean, the amount of fragmented space, instead of the space available.

Thanks
_________________
Paulo Moreira
Back to top
View user's profile Send private message MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Sep 16, 2004 5:21 am    Post subject: Reply with quote

Paulo Moreira,

There is no rule of thumb as to when to reorganize a vsam cluster. It is a good practise to re-org the vsam cluster when there are too many CI/CA splits. If a VSAM file is constantly updated with new records, they will keep causing splits. This has performance implications.

As CA splits occur, the file is going to expand in size until it could occupy significantly more space than required. CA splits will create new free space that can be useful if the file receives clustered inserts. Once the CA split occurs, the extra overhead processing the file may be small. A bad design of key structure also has lot of performance implications.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Paulo Moreira
Beginner


Joined: 15 Sep 2004
Posts: 2
Topics: 1

PostPosted: Thu Sep 16, 2004 9:05 am    Post subject: Size and percent fragmented space allocated for a vsam file. Reply with quote

Kolusu, thank you.

But, how do I know the size and percent fragmented space allocated for a vsam file ?
_________________
Paulo Moreira
Back to top
View user's profile Send private message MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Sep 16, 2004 12:05 pm    Post subject: Reply with quote

Paulo Moreira,

Just do a Listcat on the vsam cluster and look at the listing. Post the listing here and may be we can calculate it

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Sun Sep 26, 2004 4:08 pm    Post subject: Reply with quote

Paulo Moreira,

However, do not assume that a re-org'ed file will necessarily perform better than a file with CI/CA splits. It may actually perform worse.

The reason why a split occurs in the first place is because space is required at that particular place in the file. And once a split has occurred, if extra records are also needed at that same place in the file, the space is now there for them; you won't need to split again. If you were to do a reorg at this point, you would then take away space from the very place where it is needed. Not clever.

One rule of thumb is that if it is a small VSAM file (with few inserts) that is not used heavily, then don't be too concerned about tuning it. If however, you have lots of VSAM files in your shop, and a significant amount of processing occurs with them, then tuning is very important, and the returns can be dramatic. And tuning is not a straight forward exercise; it takes a bit of time to get it right. And it doesn't just simply mean re-org'ing all the time either. Alot of it has to do with getting the cluster definition right in the first place. Easier said than done.

The world's foremost expert on VSAM is a fellow known as Ron Ferguson, who runs Mainstar. Try and go on one of his courses if you ever get the chance.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group