MX_FILEVAR

xcall MIAMEX, MX_FILEVAR, op, ch, sts, recno {,stat}

MIAMEX function MX_FILEVAR (195) gets or sets the value of the file record number variable, and, in the case of ISAMA, the stats variable.

Parameters

op  (num)  [in]

specifies 0 for get, and 1 for set

ch  (num)  [in]

is the file channel

sts  (signed num)  [out]

returns 0 for success, -1 if file ch not open, or -2 for unsupported file type

recno  (num)  [in/out]

the value of the record number variable (associated with the file in its OPEN statement) to be retrieved or set.

stat  (num)  [in/out]

the value of the stat variable (associated with the file in its OPEN statement) to be retrieve or set.