Multiple-Device Files

Any RPG WORKSTN file with at least one of the keywords DEVID, SAVEIND, MAXDEV(*FILE) or SAVEDS specified on the file description specification is a multiple-device file. Through a multiple-device file, your program may access more than one device.

The RPG program accesses devices through program devices, which are symbolic mechanisms for directing operations to an actual device. When you create a file (using the DDS and commands such as the create file commands), you consider such things as which device is associated with a program device, whether or not a file has a requesting program device, which record formats will be used to invite devices to respond to a READ-by-file-name operation, and how long this READ operation will wait for a response. For detailed information on the options and requirements for creating a multiple-device file, see the chapter on display files in the DB2 Universal Database for iSeries section of the Database and File Systems category in the i5/OS Information Center at this Web site - http://www.ibm.com/systems/i/infocenter/. You can also refer to information on ICF files in ICF Programming manual.

With multiple-device files, you make particular use of the following operation codes:

See the IBM Rational Development Studio for i: ILE RPG Reference for details of the RPG operation codes.

On the file description specification you can specify several keywords to control the processing of multiple-device files.



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