Previous Topic Next topic Print topic


To code a report page description

Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
  1. In the Program Painter, type RED in columns 4 through 6.
  2. Type the report name starting in column 12 of the same line.
  3. Code the number of printable lines on each page using the PAGE LIMIT Report Writer structure.
  4. Code the line number where you want the first control heading line or detail line of the report body to print on each page using the FIRST DETAIL parameter. Remember to leave space at the top of the page for any report heading and page heading lines when calculating the first detail line number.
  5. Code the line number where you want the last detail line of the report body to print on each page using the LAST DETAIL parameter. Remember to leave space at the bottom of the page for any control break lines, page footing lines, and report footing lines when calculating the last detail line number.
  6. Code the line number where you want the last control footing line to print for each page using the FOOTING parameter. Remember to leave space at the bottom of the page for any page footing and report footing lines when calculating the last control footing number.

Use the following syntax:

   RED     reportname
           [CONTROL [IS] | CONTROLS [ARE] [FINAL] 
               dataname1 ... [datanameN]]
           [PAGE [LIMIT IS | LIMITS ARE] number [LINE|LINES]
               [FIRST DETAIL firstlinenumber]
               [LAST DETAIL lastlinenumber]
               [FOOTING footinglinenumber]].

For example:

   RED     STOCK-REPORT
           CONTROLS ARE FINAL WS-LOCATION-CODE
           PAGE LIMIT IS 50
           FIRST DETAIL 10
           LAST DETAIL 40
           FOOTING 47.
Previous Topic Next topic Print topic