Previous Topic: Primary ModeNext Topic: Write-Only Mode


Secondary Mode

Secondary mode is also suited to the functions involved in report generation, but is more efficient than Primary mode. Each request is processed faster and the system uses minimum resources.

The system enters this mode of operation either explicitly, by specifying the OPTION SORT=NONE parameter in the Reporting Facility source program, or implicitly, by the Reporting Facility system where it is possible to establish from the source commands that the system is to generate a single report in the same sequence as the primary input file.

Two main processes are performed in this mode.

Compilation/Code Generation

The Reporting Facility compiler analyzes the input source commands and generates the machine code to perform the specified function. The system stores the machine code, with the GSA, on the DRWORK file for later recall and execution.

Record Selection/Data Manipulation/Report Printing

The system recalls and executes all code generated on the DRWORK file. As each input record set is processed or selected, it prints directly on the output report. When END-OF-FILE is reached on the input data, final totals print and the run terminates. Since no intermediate sort is necessary, the system does not generate a Hit File.

These data sets are required when executing in Secondary mode: