Report

PURPOSE:  The REPORT command offers a comprehensive facility for generating from one to ten reports from the current Data Set (DS) and up to 100 other DS’s.

Syntax

REPORT VIA clause

[/USE/ DOMAIN name]

[WHEN clause]

[IF; UNLESS clause]

[SHOWING clause]

[STOP; END clause]

VIA clause

this clause calls the Process Module (PM) that is used to create the reports and specifies the files for outputting the reports.  The REPORT command requires a VIA clause and the PM called by the VIA clause must relate a report.  Described in detail in Chapter 7.

/USE/ DOMAIN name

specifies the domain of a Data Index (DI).

WHEN clause

limits indexed retrieval to records having the specified key field values. Described in detail in Chapter 7.

IF; UNLESS clause

described in detail in Chapter 7.

SHOWING clause

described in detail in Chapter 7.

STOP; END clause

described in detail in Chapter 7.

EXAMPLE

*REPORT VIA NEW_STORES
*REPORT VIA PUB_BOOKS

NOTES:  Reports can also be created by any command that can execute a PM.  Information on building a report is found in the description of developing PM's.