Printing Report Data

All data in a report prints at the group level ($GROUP). The following steps define how to print a group. Because the details of report printing (such as line advancing, page breaking, and the reprinting of headers on a new page) occur at the system level, each program does not have to do this.

To print report data

  1. Move data to the fields in the group.
    Note: You cannot move a value to the following types of fields because the system supplies their values.
    • TD - Today's Date

    • CT - Current Time

    • PN - Page Number

    Move data to all other fields every time you print a group or the fields might contain erroneous data.

  2. Send a request to print the group.
    1. Move the group name to RPT-GROUP-REQUEST.
    2. Use the standard routine 700-PRINT-RPT-GRP. This routine is included in your source program when you compile the program.