RPG/400 Help

Position 16 (Fetch Overflow/Release)

Entry
Explanation
Blank
Must be blank for all files except printer files (PRINTER specified in positions 40 through 46 of the file description specifications). If position 16 is blank for printer files, overflow is not fetched.
F
Fetch overflow.
R
Release a device (workstation) after output.

Fetch Overflow

An F in position 16 specifies fetch overflow for the printer file defined on this line. This file must be a printer file that has overflow lines. Fetch overflow is processed only when an overflow occurs and when all conditions specified by the indicators in positions 23 through 31 are satisfied. An overflow indicator cannot be specified on the same line as fetch overflow.

If an overflow indicator has not been specified in positions 33 and 34 of the file description specifications for a printer file, the compiler assigns one to the file. An overflow line is generated by the compiler for the file, except when no other output records exist for the file or when the printer uses externally described data. This compiler-generated overflow can be fetched.

Overflow lines can be written during detail, total, or exception output time. When the fetch overflow is specified, only overflow output associated with the file containing the processed fetch is output. The fetch overflow entry (F) is required on each OR line for record types that require the overflow routine. The fetch overflow routine does not automatically advance forms.

The form length and overflow line can be specified on the line counter specifications, in the printer device file, or through an OS/400 override command.

Release

After an output operation is complete, the device used in the operation is released if you have specified an R in position 16 of the corresponding output specifications. See the REL (Release) operation for further information on releasing devices.


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