Print Routine Considerations
When using a print routine, you should consider the following:
-
Before performing a print routine, the report program must move a print request value (a report group name) to
RPT-GROUP-REQUEST
. -
The page number is moved to the print line if "page" occurs in columns 123-126.
-
The system date is moved to the print line if "date" occurs in column 8 and rpt-skip = 9.
-
The system time is moved to the print line if "time" occurs in columns 8-11.
-
Dates (in the format 99/99/99) are assumed to be in yymmdd sequence, and are displayed as mmddyy, yymmdd, or ddmmyy depending on the value in the
WS-DATE-DISPLAY-FORMAT
field.
To print report data
-
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. Even though you may see DATE, TIME, and PAGE fields in a report definition, you cannot access these fields.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.
-
Move the group name to
RPT-GROUP-REQUEST
. -
Perform 700-PRINT-RPT-GRP .