Hello,
I have a question about the record and file description in Cobol.
This is my code:
--File description--
SELECT OPTIONAL boek-file ASSIGN TO "boek.dat"
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS boek-prim-key
ALTERNATE RECORD KEY IS boek-alt-key1 WITH DUPLICATES
ALTERNATE RECORD KEY IS boek-alt-key2 WITH DUPLICATES
FILE STATUS IS boek-status.
and
--Record description--
FD boek-file.
01 boek-record.
03 boek-key.
05 boek-prim-key.
07 b-bnr PIC 9(4).
05 boek-alt-key1.
07 b-buitgever PIC X(25).
05 boek-alt-key2.
07 b-btitel PIC X(25).
03 boek-data.
05 b-publicatieJaar PIC 9(4).
I wonder if its correct to write boek-alt-key1 and boek-alt-key2 as 2 seperate groupfields. I'm not sure that this is allowed, i'm guessing it is but I wanna make sure.
Kind regards
I have a question about the record and file description in Cobol.
This is my code:
--File description--
SELECT OPTIONAL boek-file ASSIGN TO "boek.dat"
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS boek-prim-key
ALTERNATE RECORD KEY IS boek-alt-key1 WITH DUPLICATES
ALTERNATE RECORD KEY IS boek-alt-key2 WITH DUPLICATES
FILE STATUS IS boek-status.
and
--Record description--
FD boek-file.
01 boek-record.
03 boek-key.
05 boek-prim-key.
07 b-bnr PIC 9(4).
05 boek-alt-key1.
07 b-buitgever PIC X(25).
05 boek-alt-key2.
07 b-btitel PIC X(25).
03 boek-data.
05 b-publicatieJaar PIC 9(4).
I wonder if its correct to write boek-alt-key1 and boek-alt-key2 as 2 seperate groupfields. I'm not sure that this is allowed, i'm guessing it is but I wanna make sure.
Kind regards