file control. select fd-name assign to "user.dat" organization is indexed access mode is dynamic record key is fd-name-key. ... file section. fd fd-name record contains 80 characters. 01 fd-name-record. 05 fd-name-key pic x(5). 05 fd-name-data pic x(75).
In this example an indexed file with fixed-length 80-byte records, keyed on the first five bytes of each record, is defined.