Previous Topic Next topic Print topic


PAGE LIMIT

Define the page length and the vertical subdivisions of a printed page.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

PAGE LIMIT IS|ARE number [LINE|LINES]
    [FIRST DETAIL linenumber]
    [LAST DETAIL linenumber]
    [FOOTING linenumber] [.]

Parameters:

number LINE|LINES Number of lines on each report page. Number cannot exceed 3 digits and must be greater than or equal to the FOOTING linenumber.
FIRST DETAIL linenumber First detail line. Print control break heading and report body detail lines beginning on linenumber. Print REPORT and PAGE HEADING groups before linenumber.
LAST DETAIL linenumber Line number of the last report body detail line. Print CONTROL FOOTING, PAGE FOOTING, and REPORT FOOTING lines after this number. Linenumber must be greater than FIRST DETAIL linenumber.
FOOTING linenumber Last line number of the last control footing report group. Print PAGE FOOTING and REPORT FOOTING lines after this number Linenumber must be greater than or equal to LAST DETAIL linenumber.

Comments:

  • Code PAGE LIMIT before FIRST DETAIL, LAST DETAIL, or FOOTING.
  • Code FIRST DETAIL, LAST DETAIL, and FOOTING in any order.
  • Each report group should fit on one page; Report Writer never splits a report group across page boundaries.
  • Coding PAGE LIMIT assumes default values.
  • Omitting FIRST DETAIL assigns the heading line value to linenumber.
  • Omitting either LAST DETAIL or FOOTING assigns the PAGE number value to them.
  • Coding FOOTING without LAST DETAIL assigns the FOOTING linenumber to LAST DETAIL linenumber.
  • Coding LAST DETAIL without FOOTING assigns the LAST DETAIL linenumber to FOOTING linenumber.
  • Omitting PAGE LIMIT generates a single-page report of indefinite length without page and line counter registers.
  • AppMaster Builder automatically makes number LINES the maximum for the LINE-COUNTER field, which you can reference at any time. To map LINE-COUNTER (or PAGE-COUNTER) when there is more than one report in a program, code LINE-COUNTER of reportname.

Examples:

 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