Previous Topic: Listing All RowsNext Topic: Controlling Page Breaks in a Report


Creating Page Breaks

The LIST NEWPAGE statement sends a page eject request to the RUNLIST file. When the file prints, the page ejects force the following records to print on a new page. For example, the following code causes a page break before the customer data begins to print and after the customer data finishes printing:

LIST NEWPAGE
FOR EACH CUSTOMER
    LIST CUSTOMER.CUSTID CUSTOMER.NAME
ENDFOR
LIST NEWPAGE

You can use this technique to separate reports generated by the LIST statement in the same application run.