EXTFILE

744 Views


The EXTFILE keyword specifies which file, in which library, is opened.

If you have specified an override for the file that RPG will open, that override will be in effect.

In the following code, for the file named INPUT within the RPG program, the file that is opened at runtime depends on the value of the filename field.

 Finput     if   f   10        disk    extfile(filename)

 

IBM: EXTFILE

There are several File specification, F-specs, keywords that I use especially with “work” files:

  • EXTFILE
  • EXTDESC
  • EXTMBR
  • RENAME

RPGPGM: Useful keywords for your F-specs

 

Post Comments