Previous Topic: Standard RPG III Subroutines

Next Topic: RPG III Field Names

Format Names in RPG III

Where a format has to be renamed, for example, because it appears twice in a program, it should be renamed to a name of the form @MMMMx, where @MMMM was the original format name, and x is the suffix of the logical file that is being renamed. Field names can likewise be renamed from yyMMMM to yxMMMM.

File access operations, such as READ, CHAIN, and READ, should use the format name, rather than the file name.