IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Length of the AIX Record.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Benasir

New User


Joined: 25 Apr 2008
Posts: 3
Location: Coimbatore

PostPosted: Thu May 08, 2008 7:46 am
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
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 08, 2008 8:21 am
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: 165
Location: Bangalore

PostPosted: Thu May 08, 2008 9:32 am
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: 165
Location: Bangalore

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

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 08, 2008 10:59 am
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
Benasir

New User


Joined: 25 Apr 2008
Posts: 3
Location: Coimbatore

PostPosted: Tue May 13, 2008 6:25 pm
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: 8797
Location: Welsh Wales

PostPosted: Tue May 13, 2008 6:56 pm
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: 2146
Location: At my coffee table

PostPosted: Tue May 13, 2008 7:06 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 13, 2008 7:42 pm
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
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: 165
Location: Bangalore

PostPosted: Wed May 14, 2008 7:06 am
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top