theotyflos
Programmer
Hi group,
Language is RM/Cobol v9 on windows.
A have an indexed file with 2 NON duplicate keys (the primary and an alternate) like the following:
Trying to write a record that already exists, I get a file status "22" (duplicate key); that's ok so far. BUT, I don't know which key is duplicate. C$RERR doesn't give any further info. Is there any way to know which one of the 2 keys (or both maybe) is duplicate?
Thanks in Advance.
Theophilos.
-----------
There are only 10 kinds of people: Those who understand binary and those who don't.
Language is RM/Cobol v9 on windows.
A have an indexed file with 2 NON duplicate keys (the primary and an alternate) like the following:
Code:
File-Control.
Select Optional Some-File
Assign To Random Some-Path
Organization Indexed Access Dynamic
Record Key Some-Key
Alternate Record Key Some-Alt-Key
File Status Some-Flst.
:
File Section.
FD Some-File.
1 Some-Rec.
2 Some-Key Pic Something.
2 Some-Alt-Key Pic Something-Else.
2 Some-Data Pic Something-Other.
Trying to write a record that already exists, I get a file status "22" (duplicate key); that's ok so far. BUT, I don't know which key is duplicate. C$RERR doesn't give any further info. Is there any way to know which one of the 2 keys (or both maybe) is duplicate?
Thanks in Advance.
Theophilos.
-----------
There are only 10 kinds of people: Those who understand binary and those who don't.