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.

Note

Because of COBOL’s processing requirements, the definitions of the data types associated with the record fields vary from the descriptions 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.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*