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
 
Length of the AIX Record.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
Benasir

New User


Joined: 25 Apr 2008
Posts: 3
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: 7342
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: 169
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: 169
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: 7342
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
Moved: Wed May 14, 2008 5:36 pm by William Thompson From DB2 to SMS & VSAM
Benasir

New User


Joined: 25 Apr 2008
Posts: 3
Location: Coimbatore

PostPosted: Tue May 13, 2008 6:25 pm    Post subject: Length of the AIX Record.
Reply with quote

Primary Key = 10, Record length = 100, Alternate key = 8, 5 duplicates allowed then what is the length of AIX record??
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2817
Location: Brussels once more ...

PostPosted: Tue May 13, 2008 6:56 pm    Post subject:
Reply with quote

Length of alt key * number of possibilities perhaps ?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1117
Location: At my desk

PostPosted: Tue May 13, 2008 7:06 pm    Post subject: Re: Length of the AIX Record.
Reply with quote

Benasir wrote:
Primary Key = 10, Record length = 100, Alternate key = 8, 5 duplicates allowed then what is the length of AIX record??
Why would you care?
8+(10*5)?
From 18 to 58?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 2538
Location: italy

PostPosted: Tue May 13, 2008 7:42 pm    Post subject: Reply to: Length of the AIX Record.
Reply with quote

just print the aix and Your curiosity will be satisfied
Back to top
View user's profile Send private message
Benasir

New User


Joined: 25 Apr 2008
Posts: 3
Location: Coimbatore

PostPosted: Tue May 13, 2008 7:49 pm    Post subject: Length of the AIX Record.
Reply with quote

Hi everyone,
Thanks a lot for sharing the details about AIX.
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 169
Location: Bangalore

PostPosted: Wed May 14, 2008 7:06 am    Post subject:
Reply with quote

how many times will you ask this question?
your question was already answered when you asked in the DB2 forum.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1