IBM manual Multiple-Device Files, ILE RPG for AS/400 Programmers Guide

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 368
Image 368

Multiple-Device Files

ation

to the ICF device, you do not need to modify

the value

aga

input

operation

completes successfully with a different

device.

 

¹ The

SAVEDS keyword indicates a data structure that is

saved and

re

each

device

acquired to a file. The SAVEIND keyword

indicates

a

tors to

be

saved and restored

for each device acquired to a f

operation, the

current

set of indicators

and

data

structure

are s

input

operation,

the RPG compiler

restores

the

indicators

and

data

the

device

associated

with the operation. This may be

a differe

tors

or

data

structure

than was

available

before

the

input

operati

¹The INFDS keyword specifies the file information data structure for

WORKSTN file. The RPG *STATUS

field and

the major/minor return code for

the I/O operation can

be

accessed

through this data structure. P

when ICF is being used, both fields

are useful for detecting err

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

Page 368
Image 368
IBM manual Multiple-Device Files, ILE RPG for AS/400 Programmers Guide