DO REPORT

PURPOSE:  This command is an equated command implemented in ACCENT R’s SPL.  This command is an extension of the Reporter on-line report generator.  It provides you with a way to specify record selection criteria for a report.  The current Data Base Library (DBL) is searched (unless another DBL is specified) for the specified report that was created with Reporter.  DO REPORT then produces the report on the screen with the criteria selected.  The Process Modules (PM’s) associated with the reports are unaffected by the selection criteria entered.

SYNTAX

DO REPORT [report_name] [IN DBL dbl_name] [WITH RECORD SELECTION]

report_name

is the report name specified in Reporter when the report was created.  If the name of the report is omitted, the DO REPORT command will prompt for the report name.  A slash (/) may be used at the prompt to display a list of reports to choose from.  If the report name is entered incorrectly, the command will abort.

IN DBL dbl_name

is the name of the DBL that contains the report.  If the DBL name is omitted, DO REPORT will try to locate the report name in the currently declared DBL.  If no DBL is declared, DO REPORT will prompt for a DBL name.  A slash (/) may be used at the prompt to display a list of DBL’s.  If a DBL name entered does not exist, the command will abort.

WITH RECORD SELECTION

allows the use of record selection criteria from menus.  Conditions may be specified which will select the subset of records to be used for the report.  If the record selection clause is omitted, all records will be used for the report.

EXAMPLE

*DO REPORT FORECAST_SALES IN DBL NISDATA:BOOKS WITH RECORD SELECTION

SEE ALSO:  GETTING STARTED WITH REPORTER (separate document)