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

Doubt regarding Alternate Index


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

New User


Joined: 12 Oct 2010
Posts: 27
Location: Bangladesh

PostPosted: Mon Jun 18, 2012 11:10 am
Reply with quote

Hi ,

I am not able to find out the answer from the following options as it is too confusing. May be because i had a different understanding about alternate index. Kindly guide me.

When u print/open AIX what components will u find?
a. Actual records related to base cluster via alternate key.
b. Alternate key with primary key
c. Alternate key with primary key and control interval
d. Actual records and its linked alternate key
After creation of AIX, by relating with base cluster, what will be the content of AIX?
a. Will have alternate key
b. Will have alternate key with primary key
c. Will have data along with the key
d. None

Thanks in advance. Hope @dick, @anuj or @expat can help me icon_smile.gif i posted a query 2 years ago and this is the next one. Thanks a lot for your support guys.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jun 18, 2012 11:26 am
Reply with quote

since they look like as interview questions
the topic was moved!

the two questions are related to the same concept .... even if asked with different words

when You print < a thing > You just show the < a thing > content.

see here for some snippets
www.ibmmainframes.com/viewtopic.php?t=29269&postdays=0&postorder=asc&start=15

Quote:
Hope @dick, @anuj or @expat can help me


asking for help from specific people is considered bad manners
You should be ready to accept answers form anybody who feels he/she has the competence to reply
Back to top
View user's profile Send private message
ThiruvenkatNathan

New User


Joined: 12 Oct 2010
Posts: 27
Location: Bangladesh

PostPosted: Mon Jun 18, 2012 11:39 am
Reply with quote

Thank you vey much enrico.

So as per my understanding,

Ans for 1st question is Option A
Ans for 2nd question is Option C.. I guess..

I am really confused when these kind of questions have the " almost same answers ". I will not be able to test using jcl though since we are having a bit trouble here with emulator.

Kindly confirm whether my answers are right and if they are not correct please let me know the answers. Your help is really appreciated.
Back to top
View user's profile Send private message
ThiruvenkatNathan

New User


Joined: 12 Oct 2010
Posts: 27
Location: Bangladesh

PostPosted: Mon Jun 18, 2012 11:40 am
Reply with quote

Quote:


asking for help from specific people is considered bad manners
You should be ready to accept answers form anybody who feels he/she has the competence to reply



Should not have done that. My sincere apologies. icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jun 18, 2012 11:47 am
Reply with quote

in it using the proper terminology is essential for good communication ...

the players here are ...

the base cluster ( ksds/esds )
the AIX
the PATH

the AIX contains the <alternate> key and the key/rba of the bas record

so when You <print>/<show the content> of the AIX the base cluster is not accessed

the base data is accessed when processing the PATH

but all this can be found in the IBM redbook VSAM demystified available here
www.redbooks.ibm.com/abstracts/sg246105.html?Open

in any case, unless I misunderstood Your terminology the answer is B for both questions
Back to top
View user's profile Send private message
ThiruvenkatNathan

New User


Joined: 12 Oct 2010
Posts: 27
Location: Bangladesh

PostPosted: Mon Jun 18, 2012 11:58 am
Reply with quote

Exactly what i had in mind enrico icon_smile.gif

But sadly these are the options i have been given.. I hope you can understand the frustration since i have been trying to find out answers for these questions for sometime.

Printing AIX - Alternate key + Key of base record ( Which i think is primary key )

Am i getting it right ? Would you be kind enough to tell me which of the above options it might be.. And i am not able to download the pdf from that link as well because of the restrictions. I would be so relieved if i just know which options are exactly the answer for these questions above.

I know that we are not suppose to demand answers from moderators and i am certainly not taking you for granted. It is just a humble request.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jun 18, 2012 12:01 pm
Reply with quote

a moderator is just somebody who apart the moderation also gives replies

in my previous reply I thought I had already answered ... B for both questions

( if You are processing ths AIX ONLY )
Back to top
View user's profile Send private message
ThiruvenkatNathan

New User


Joined: 12 Oct 2010
Posts: 27
Location: Bangladesh

PostPosted: Mon Jun 18, 2012 12:08 pm
Reply with quote

Thank you very much enrico. Really appreciate your help.

And just one more doubt.. After relating with base cluster wouldn't AIX contain the data as well.. ? Just wondering..
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jun 18, 2012 12:25 pm
Reply with quote

NOPE icon_biggrin.gif, the AIX is what the name tells... just an INDEX

did You look at the link I posted with my jcl snippets and results

th base cluster was an ESDS, bu the concept is the same ....

see what happened when I printed
1) the base cluster ==> DATA records ordered by RBA
2) the AIX ==> NO DATA . ALTERNATE KEY + RBA
3) the PATH ( AIX->BASE) ==> DATA records ordered by the alternate KEY
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jun 18, 2012 2:41 pm
Reply with quote

Study the Redbook and the manual. The record length of an AIX has absolutely no relationship to the record length of the base cluster -- which should be a clue that the AIX does not contain data.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Tue Jun 26, 2012 4:02 pm
Reply with quote

If you have a Base Cluster for example with 100 byte records, and the KEY is the first 10 bytes starting at position 0, which may be account number, you access the base cluster using that account number key.

If within the base cluster record there is another field with the persons name for example, which might be starting at position 11 for a length of 30, you can create an AIX and PATH so you can access the Base cluster records indexing on that different key.

When you build the AIX it copies all those keys into the AIX cluster. You then define a PATH that relates to the AIX, so you then access through the PATH name to make record searches through the AIX for the key you want. That in turn points to the desired matching record(s) of that alternate key in the Base cluster, from where the actual data records are read.

You can have multiple AIX's and PATH's to key on different parts of the Base cluster records.
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 Cobol file using index COBOL Programming 2
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Doubt about pl/1 (job offer) General Talk & Fun Stuff 5
No new posts Add column to existing records using ... JCL & VSAM 2
No new posts choice of clustering index DB2 3
Search our Forums:

Back to Top