View previous topic :: View next topic
|
Author |
Message |
sandhyaimmadi
New User
Joined: 18 Aug 2008 Posts: 50 Location: Bangalore
|
|
|
|
While declaration a file which is used for alternate key
do we need to delcare primary key also.
for example :
RECORD KEY IS S1-PRIMARY-KEY
ALTERNATE KEY IS S1-ALT1-KEY
ALTERNATE KEY IS S1-ALT2-KEY
Please suggest. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If you review the syntax diagram (see the COBOL Language Reference manual in the manuals link at the top of the page), you will see that for an indexed file, the RECORD KEY clause is not optional -- whether or not there is an alternate index. |
|
Back to top |
|
|
sandhyaimmadi
New User
Joined: 18 Aug 2008 Posts: 50 Location: Bangalore
|
|
|
|
Thank you very much for your reply. |
|
Back to top |
|
|
|