Position 17 (Type – Program-Described File)

Entry
Explanation
H or D
Detail records usually contain data that comes directly from the input record or that is the result of calculations processed at detail time. Heading records usually contain constant identifying information such as titles, column headings, page number, and date. No distinction is made between heading and detail records. The H/D specifications are available to help the programmer document the program.
T
Total records usually contain data that is the end result of specific calculations on several detail records.
E
Exception records are written during calculation time. Exception records can be specified only when the operation code EXCEPT is used. See EXCEPT (Calculation Time Output) for further information on the EXCEPT operation code.

Position 17 indicates the type of record to be written. Position 17 must have an entry for every output record. Heading (H) and detail (D) lines are both processed as detail records. No special sequence is required for coding the output records; however, lines are handled at separate times within the program cycle based on their record type. See Figure 7 and Figure 8 for more information on when in the cycle output is performed.

Note:
If MAIN or NOMAIN is coded on a control specification, only exception output can be done.


[ Top of Page | Previous Page | Next Page | Contents | Index ]