Lookahead Routine

Figure 9 shows the specific steps in the RPG IV lookahead routine. The item numbers in the following descriptions refer to the numbers in the figure.

 1 
The next record for the file being processed is read. However, if the file is a combined or update file (identified by a C or U, respectively, in position 17 of the file description specifications), the lookahead fields from the current record being processed is extracted.
 2 
The lookahead fields are extracted.


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