CMRCOBCN (COBOL copybook) program
The COBOL copybook contains the formats of the records held in the CMRDETL data set.
The CMRFREDN program passes the CMRDETL records to the calling COBOL program. The COBOL copybook is in BBSAMP member CMRCOBCN.
The CMRCOBCN defines three COBOL 01 data structures:
- CMR-Control
- CMRDETL
- COPYRIGHT
The purpose of these data structures is explained in the following sections.
CMR–CONTROL
The CMR–CONTROL data structure passes control fields between the CMRFREDN program and the executing COBOL program. CMR–CONTROL contains the following fields:
- The Status field is defined with a COBOL 88-level name to indicate end of file.
- The Function field defines the operation to be performed in the CMRFREDN program.
CMRDETL
CMRDETL contains the COBOL-compatible definitions of the record fields. The COBOL versions of CMRDETL records use the same field names described in Reference-for-PERFORMANCE-REPORTER.
COBOL CMRDETL field formats are as follows:
Field | Format |
---|---|
Numeric | packed decimal |
Time | seconds |
TYPE | two bytes: 6D or 6E |
T6EQUAL | two bytes, packed decimal |
COPYRIGHT
The COPYRIGHT data structure contains a copyright statement. The copyright also appears in the compiled COBOL object program.
Related topic