Types of Device Files - IBM - RPG

Before your program can read or write to the devices on the system, a device description that identifies the hardware capabilities of the device to the operating system must be created when the device is configured. A device file specifies how a device can be used. By referring to a specific device file, your RPG program uses the device in the way that it is described to the system. The device file formats output data from your RPG program for presentation to the device, and formats input data from the device for presentation to your RPG program.

You use the device files listed in Table to access the associated externally attached devices:

AS/400 Device Files, Related CL commands, and RPG Device Name

AS/400 Device Files, Related CL commands, and RPG Device Name

The device file contains the file description, which identifies the device to be used; it does not contain data.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM - RPG Topics