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 

Question about CA/CI splits

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
grajeevg
Beginner


Joined: 11 Jun 2004
Posts: 5
Topics: 2

PostPosted: Mon Jan 03, 2005 12:39 pm    Post subject: Question about CA/CI splits Reply with quote

Can anybody clarify my following doubts about VSAM..

1. How do we know that control split is happened in control area?

2. How do we map a particular record in particular control interval?

Rajeev
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Jan 03, 2005 12:55 pm    Post subject: Reply with quote

Rajeev,

Please follow the forum rules.

Use meaningful topics (don't use the Forum name for the topic). The title "vsam" does not convey the actual requirement. A better title would be " Question about CA/CI splits" will be more approriate. I am changing the title to reflect the requirement.


Quote:

1. How do we know that control split is happened in control area?


Answer : CI and CA splits occur as a result of data record insertions. If a record is to be inserted and there is not enough free space in the CI, the CI will be split.

Approximately half of the records in the CI are transferred to a free CI and the record to be inserted is placed in the original CI.

If there are no free CIs and a record is to be inserted, a CA split occurs.

Quote:

How do we map a particular record in particular control interval?


Answer : NO. you really cannot the map the record to Control Interval. The relative byte address (RBA) is used to determine the position of a record in a VSAM data set. It is the physical location of a logical record contained in a data set. The RBA is the offset of a logical record from the beginning of the data set.

The first record in the VSAM data set has an RBA of zero; the second record has an RBA equal to the length of the first record, and so on. The RBA of a logical record depends only on the record's position in the sequence of records. The RBA is always expressed as a full word binary integer.

The RBA of a record includes the free space and control information in the CI. RBAs might change when a control interval split occurs or when records are added, deleted, or changed in size. With compressed data sets, the RBAs for compressed records are not predictable. Therefore, access by address is not suggested for normal use.

I suggest that you read this excellent Redbook on VSAM

http://publib-b.boulder.ibm.com/abstracts/sg246105.html?Open

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
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Jan 03, 2005 5:04 pm    Post subject: Reply with quote

Q. How do you know a split happened?

A. Check the output of LISTCAT or IDCAMS batch to see the number of CI/CA splits that have occurred.
Back to top
View user's profile Send private message
grajeevg
Beginner


Joined: 11 Jun 2004
Posts: 5
Topics: 2

PostPosted: Tue Jan 11, 2005 3:39 am    Post subject: Reply with quote

Thanks Kolusu,

the URL was very much helpful
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 -> Application Programming 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