Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

REPORT clause

Function

The REPORT clause relates one or several reports described in the REPORT SECTION to a file in whose file description (FD) entry this clause is specified. Each of these reports is written line by line to the file assigned by the REPORT clause and described as an output file.

Format


{REPORT | REPORTS} {IS | ARE} {report-name-1}...


Syntax rules

  1. Each report-name specified in the REPORT clause must be the subject of a report description entry defining that name as a report-name.

  2. Within a class definition, the REPORT clause may only be specified in a method definition.

General rules

  1. The name of each report to be produced by the Report Writer must appear in the REPORT clause of the file description for the sequential output file to which the report is to be written.

  2. Specification of several report-names in one REPORT clause relates these reports to the file whose file description entry contains the REPORT clause. When created, these reports are written to the assigned file regardless of the order in which the report names are specified and regardless of their formats, their lengths or any similar details.

  3. Each report-name defined by a report description entry must be specified in one, and only one, REPORT clause; that is, a given report may be assigned to one file only.

  4. The record format (variable, fixed, or unspecified length) is determined by the entry in the RECORD CONTAINS clause.