HP 3000 Manuals

PAUSE EVERY [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

PAUSE EVERY 

The PAUSE EVERY statement is a Report Writer statement that allows you to
pause at the end of a report page.  This statement is useful for looking
at reports on the terminal as well as directing printers to stop for
paper replacement at specified times.

Only one PAUSE EVERY statement can occur in a report description.

Syntax 

      {AFTER EVERY}           [PAGE ]
PAUSE {AFTER      } num_pages [PAGES]
      {EVERY      }

Parameters 

num_pages        A numeric expression indicating how often the Report
                 Writer should pause.  Output will be suspended every
                 page that is a multiple of num_pages.  The value of the
                 expression must be a non-negative integer.  A value of
                 zero causes the statement to be ignored.

Examples 

The following examples show the use of the PAUSE EVERY statement.

     100 PAUSE EVERY 1 PAGES
     100 PAUSE AFTER EVERY Pause_every PAGES

This statement is evaluated only by BEGIN REPORT. It is busy only during
its evaluation.  If the expression is zero, the statement is ignored and
no pauses take place.

The PAUSE EVERY statement is active when report output occurs on the
terminal.  Reports redirected to non-terminal devices do not suspend
output.  The SUPPRESS PRINT FOR statement prevents the pause from taking
place while output is suppressed.  However, the pages are counted while
output is suppressed, so the pause takes place on the first page that is
a multiple of num_pages that gets printed.

When the report pauses, no prompt is given.  This prevents extraneous
characters from appearing on a printed report.  The report writer waits
until a carriage return is pressed before continuing.  Any characters
typed are not echoed.  Essentially, the report writer executes the ACCEPT
statement to accomplish the pause.



MPE/iX 5.0 Documentation