Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
To find out the length of Alternative Index(AIX)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
Benasir

New User


Joined: 25 Apr 2008
Posts: 1
Location: Coimbatore

PostPosted: Thu May 08, 2008 7:46 am    Post subject: To find out the length of Alternative Index(AIX)
Reply with quote

What is the formula to find out the length of Alternative Index(AIX) ?
Back to top
View user's profile Send private message
References
PostPosted: Thu May 08, 2008 7:46 am    Post subject: Re: To find out the length of Alternative Index(AIX) Reply with quote

dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 5923
Location: 221 B Baker St

PostPosted: Thu May 08, 2008 8:21 am    Post subject:
Reply with quote

Hello Benasir and welcome to the forums,

If i understand your question, there is no calculation - the length is determined by the size of the column(s) that make up the alternate index.
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 94
Location: Bangalore

PostPosted: Thu May 08, 2008 9:32 am    Post subject:
Reply with quote

the size of the alternate index for KSDS is calculated as :
Code:

for unique key      : 5 + alternate key length + primary key length
for non-unique key  : 5 + alternate key length + (n *  primary key length)

the size of the alternate index for ESDS is calculated as :
Code:

for unique key      : 5 + alternate key length + RBA Size
for non-unique key  : 5 + alternate key length + (n *  RBA Size)

here, n is the maximum number of duplicates allowed in the alternate index.
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 94
Location: Bangalore

PostPosted: Thu May 08, 2008 10:04 am    Post subject:
Reply with quote

sorry, i mistaken it to be a VSAM question.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 5923
Location: 221 B Baker St

PostPosted: Thu May 08, 2008 10:59 am    Post subject:
Reply with quote

Hi Gautam,

Quote:
sorry, i mistaken it to be a VSAM question.
Not to worry - it possibly is a vsam question icon_smile.gif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1