File devices

The device of a file is specified by the device-type keyword for a free-form file definition, and by the Device entry for a fixed-form file definition.

The RPG IV device name defines the ILE RPG functions that can be done on the associated file. Certain functions are valid only for a specific ILE RPG device name (such as the EXFMT operation for the WORKSTN device).

Note: If no device-type keyword is specified for a free-form file, and the LIKEFILE keyword is not specified, the device defaults to DISK(*EXT).