Hi all,
Can anyone shed some light on the follow from my COBOL manual?
'An Alternate key data-name cannot reference an item whose leftmost character position corresponds to the leftmost character position of the item referenced by the primary key or by another alternate key for the same file'.
I have tested the following and it seem to work great, but also seem to break the above rule?
SELECT AUXIPD-FILE
ASSIGN TO "WIPDBUTLER"
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
LOCK MODE IS MANUAL
FILE STATUS IS AUXIPD-DISK-ERR
RECORD KEY IS AUXIPD-KEY-ITEM =
AUXIPD-ITEM
AUXIPD-WARE
AUXIPD-ORDER
AUXIPD-REL
AUXIPD-SEQ
AUXIPD-LINE
ALTERNATE RECORD KEY IS AUXIPD-KEY-ITEM-DATE =
AUXIPD-ITEM
AUXIPD-WARE
AUXIPD-INV-DATE
WITH DUPLICATES.
Any thoughts?
Thanks,
bill
Can anyone shed some light on the follow from my COBOL manual?
'An Alternate key data-name cannot reference an item whose leftmost character position corresponds to the leftmost character position of the item referenced by the primary key or by another alternate key for the same file'.
I have tested the following and it seem to work great, but also seem to break the above rule?
SELECT AUXIPD-FILE
ASSIGN TO "WIPDBUTLER"
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
LOCK MODE IS MANUAL
FILE STATUS IS AUXIPD-DISK-ERR
RECORD KEY IS AUXIPD-KEY-ITEM =
AUXIPD-ITEM
AUXIPD-WARE
AUXIPD-ORDER
AUXIPD-REL
AUXIPD-SEQ
AUXIPD-LINE
ALTERNATE RECORD KEY IS AUXIPD-KEY-ITEM-DATE =
AUXIPD-ITEM
AUXIPD-WARE
AUXIPD-INV-DATE
WITH DUPLICATES.
Any thoughts?
Thanks,
bill