RPG/400 Help

Position 32 (File Organization)

Entry
Explanation
Blank
The program-described file is processed without keys, or the file is externally described.
I
Indexed file (valid only for program-described files).
T
Record address file that contains relative-record numbers (valid only for program-described files).

Use position 32 to identify the organization of program described files.

Indexed Files

An indexed file can be processed:

Nonkeyed Program-Described File

A program-described file that is processed without keys can be processed:

Record Address File

A record-address file (indicated by an R in position 16) that contains relative-record numbers must be identified by a T in position 32. (A record-address file must be program described.) Each record retrieved from the file being processed is based on the relative record number in the record-address file. (Relative record numbers cannot be used for a record-address-limits file.)

Each relative-record number in the record-address file is a 4-byte binary field; therefore, each 4-byte unit of a record-address file contains a relative-record number.

A minus one (-1 or hexadecimal FFFFFFFF) relative-record number value causes the record to be skipped. End of file occurs when all record-address file records have been processed.

For more information on how to handle System/36 Environment record-address files, see the RPG/400* User's Guide.


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