STOP

Function

Halts Production Reporting.

Syntax

STOP [QUIET]

Arguments

QUIET

Completes the report with the “Production Reporting: End Of Run” message, instead of aborting with an error message.

Description

STOP halts Production Reporting and executes a ROLLBACK command (not in Sybase, ODBC, or Informix). All report page buffers are flushed if they contain data; however, no headers or footers are printed and the AFTER-PAGE and AFTER‑REPORT procedures are not executed.

STOP is useful in testing.

Examples

if #error-status = 1
  rollback
  stop
else
  commit
  stop quiet
end-if