2.8.2 Creating a Copybook File
To use a RECORD
typed buffer, you must define the record in a COBOL copybook file. The copybook file includes a RECORD
for each entry. The name of the RECORD
corresponds to the name of the COBOL language field. For more information about COBOL copybook, please see COBOL language reference.
Below is an excerpt from an example COBOL copybook file.
$ /* copybook record */
01 CUSTOMER.
02 NAME PIC X(10).
02 BALANCE PIC S9(9) COMP-5.
02 ADDRESS PIC X(80).
Parent topic: Using a RECORD Typed Buffer