Added July 2019
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 ISAM-A, 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.
History.
2019 July, A-Shell 6.5.1664: Function added to A-Shell.