Sign in

docs RPG Reference

File Types and Processing Methods

File Types and Processing Methods

Table 1 shows the valid entries for positions 28, 34, and 35 of the file description specifications for the various file types and processing methods. The methods of disk file processing include:

  • Relative-record-number processing
  • Consecutive processing
  • Sequential-by-key processing
  • Random-by-key processing
  • Sequential-within-limits processing.

Table 1. Processing Methods for DISK Files

AccessMethodOpcodePosition 28Position 34Position 35Explanation
RandomRRNCHAINBlankBlankBlankAccess by physical order of records
Free-form syntax: (No keyword is necessary)
SequentialKeyREAD READE READP READPE cycleBlankBlankIAccess by key sequentially
Free-form syntax: KEYED keyword
SequentialWithin LimitsREAD READE READP READPE cycleLA, P, G, D, T, Z, or FIAccess by key sequentially controlled by record- address-limits file
Free-form syntax: (Not supported for a free-form file definition)
SequentialRRNREAD cycleBlankBlankTAccess sequentially restricted to RRN numbers in record-address file
Free-form syntax: (Not supported for a free-form file definition)

For further information on the various file processing methods, see the section entitled “Methods for Processing Disk Files”, in the chapter “Accessing Database Files” in the Rational® Development Studio for i: ILE RPG Programmer’s Guide.