Program Control of File Processing

Specify a full procedural file (F in position 18 of the file description specifications) to control all or partial input of a program. A full procedural file indicates that input is controlled by program-specified calculation operations (for example, READ, CHAIN). When both full procedural files and a primary file (P in position 18 of the file description specifications) are specified in a program, some of the input is controlled by the program, and other input is controlled by the cycle. Even if the program cycle exists in your module, all the processing of a full-procedural file is done in your calculations.

The file operation codes can be used for program control of input. These file operation codes are discussed in File Operations.

Figure 10. Programmer Control of Input Operation within the Program-Cycle
This figure illustrates Programmer Control of Input Operation within the Program-Cycle
Figure 11. Detail Flow of RPG IV Exception/Error Handling Routine
This figure illustrates Detail Flow of RPG IV Exception/Error Handling Routine


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