IBM AS/400 Frozen Dessert Maker User Manual


 
Multiple-Device Files
ation to the ICF device, you do not need to modify the value again unless an
input operation completes successfully with a different device.
The SAVEDS keyword indicates a data structure that is saved and restored for
each device acquired to a file. The SAVEIND keyword indicates a set of indica-
tors to be saved and restored for each device acquired to a file. Before an input
operation, the current set of indicators and data structure are saved. After the
input operation, the RPG compiler restores the indicators and data structure for
the device associated with the operation. This may be a different set of indica-
tors or data structure than was available before the input operation.
The INFDS keyword specifies the file information data structure for the
WORKSTN file. The RPG *STATUS field and the major/minor return code for
the I/O operation can be accessed through this data structure. Particularly
when ICF is being used, both fields are useful for detecting errors that occurred
during I/O operations to multiple-device files.
Note: When specifying these control options, you must code the MAXDEV
option before the DEVID, SAVEIND or SAVEDS options.
344 ILE RPG for AS/400 Programmer's Guide