What is Alternate Index ? How is it different from regular
index ?

Answer Posted / nk

The purpose of any index is to provide the most efficient
access to the records in a file. Say you have a file of
employee names and numbers. Usually the primary index will
be the employee number. If you request a record by
providing the empl#, the access will be very fast. If you
have to very often request a record by the empl name, you
may want to create a second (a/k/a alternate) index based
on the name. So when you provide a name, the access to the
correct record also will be very fast.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2713


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

698


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1892


What are the different rules to perform a Search?

610


What are the pertinent COBOL

2033






Give some examples of command terminators?

746


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

689


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

731


What is the difference between goback, stop run and exit program in cobol?

909


) How do u handle errors in BMS macro?

1415


How do you define a variable of comp-1 and comp-2?

687


how do you reference the ksds vsam file formats from cobol programs

645


Define cobol?

852


Whats the difference between search & search ALL?

5231


How can you get the ksds file records into your cobol program?

634