Previous Topic: Reporting Facility FeaturesNext Topic: Error Handling


Modes of Operation

The Reporting Facility uses four specialized modes of operation:

You can enter the operating modes either explicitly, by the commands or options you select, or implicitly, by a decision automatically made when certain conditions are recognized.

Once a particular mode of operation has been selected, it remains in effect for the duration of the run. You cannot mix operating modes in a single run.

Both the Primary and Secondary modes of operation are designed for tasks related to generating a report.

Primary

The Primary mode provides all of the facilities of report generation in a single run. It is the most frequently used mode of operation and is the best suited for generalized reporting functions. In Primary mode, you can produce multiple reports with a single pass of an input data file. Each report can be unique in the sequence of data and the selection of the data. Primary mode is very powerful, but it requires the most resources.

Secondary

Secondary mode provides the facilities for producing a single report. This is the most efficient of the report generating modes and should be used whenever possible because it uses minimum resources. You can enter Secondary mode, which has no sort or control cards, by specifying OPTION SORT=NONE in your Reporting Facility program. The Reporting Facility can choose to enter Secondary mode itself if it determines that you are generating a report in the same sequence as the primary input file.

Write-Only

Use the Write-Only mode to create a sequential disk file as output instead of generating a report.

Library Maintenance

The Library Maintenance mode enables you to catalog frequently used input statements or groups of statements for later use.

For more information about operating modes, see Reporting Facility Modes of Operation.