COBOL reports


The PERFORMANCE REPORTER’s CMRFREDN facility allows COBOL programs to access transaction records stored on the CMRDETL data set.

CMRFREDN read CMRDETL transaction records and reformat the fields into a COBOL-compatible format. The reformatted records are then passed back to the COBOL program that originally requested the data. You can produce either standard or custom COBOL reports from the reformatted transaction data.

CMRFREDN decompresses, processes and creates all records at the F7 level formatted for COBOL by BBSAMP member CMRCOBCN. See Transaction-detail-data-CMRDETL for more information.

In addition to the CMRFREDN facility, the MainView for CICS BBSAMP data set contains sample COBOL interface programs. These programs create a variety of predefined MainView for CICS reports after they have been edited to meet your site’s conditions.

These programs must be compiled and linked before they can be run. You should be able to modify these sample programs if you have some COBOL programming experience.

Note

When file expansion is turned on (FILEXPND=YES in CMRSOPT), the structure of expanded resource entries varies by type (that is, a file resource entry differs from a WebSphere MQ entry at the same offsets). A batch program that is processing the first field in each expanded resource entry receives file reads for a file resource entry, select counts for a DB2 resource entry, and open counts for a WebSphere MQ resource entry. All customized programs must process the resource entries separately by using the T6EFILEI field to determine the entry type. Entries of different types should not be processed together.

This section provides information about the following reports:

  • describes how CMRDETL transaction records are accessed and reformatted
  • provides JCL examples that explain how to compile, link, and run sample COBOL programs
  • explains how to modify sample programs to create customized COBOL reports
  • describes the controls statements used to create COBOL reports
  • provides an example of each predefined report and a description of its fields

Note

All COBOL report programs must be compiled again and link-edited again using the current version of the MainView for CICS libraries. This step ensures that the copy books for the current Type 6E record format are incorporated into the programs.

 

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