RPG/400 Help

Position 15 (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 EXCPT is used. See Operation Codes for further information on the EXCPT operation code.

Position 15 indicates the type of record to be written. Position 15 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, all lines of each record type (H, D, T, or E) are handled at separate times within the program cycle.


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