Previous Topic Next topic Print topic


RED

Name and begin the statement block that defines the report; identify the report name, control fields, and report page characteristics.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Target:

Batch environments

Syntax:

 RED    reportname
       [CODE literal]
       [CONTROL [IS] [FINAL] dataname |
        CONTROLS [ARE] [FINAL] dataname1 ... datanameN ]
       [WRITE ROUTINE [IS] paragraphname]
       [PAGE LIMIT[S] IS|ARE number LINE[S]
           [FIRST DETAIL linenumber]
           [LAST DETAIL linenumber]
           [FOOTING linenumber]] [.]

Parameters:

reportname Report name of the REPORT clause in the File Section

Comments:

  • If reportname exceeds 20 characters, Report Writer creates an abbreviated record name, consisting of: the first character of each hyphenated word of the report name, except the last word; a hyphen; the last word; a hyphen; and the word RECORD. For example,
    • Input REALLY-LONG-REPORT-NAME
    • Output RLR-NAME-RECORD
  • Each report requires a RED statement. Reportnames in both the RED and FD statements must be identical.
  • Code RED clauses in any sequence.

Examples:

 RED   YEAR-END-SALES-SUMMARY
       CONTROLS ARE FINAL 
          REGION REGION-MGR-FLD OFFICE
       PAGE LIMIT IS 58 LINES
       FIRST DETAIL 9
       HEADING 1
       FOOTING 58.
Previous Topic Next topic Print topic