omron — IOSTAT real-valued function

IOSTAT real-valued function IOSTAT real-valued function Syntax IOSTAT (lun, mode ) Function Return status information for the last input/output operation for a device associated with a logical unit. Usage Considerations IOSTAT returns information only for the most recent operation. If more than one operation is performed, the status should be checked after each one. Parameters lun Real-valued expression whose integer value is the logical unit number for the I/O device of interest.

(See the description of ATTACH for information on the logical unit numbers recognized by the eV+ system and how logical units are associated with I/O devices.) mode Optional expression that selects the type of I/O status to be returned for the specified logical unit. The following table shows the effects of the various mode values.

(If the mode value is omitted, the value zero is assumed.) eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 304 Mode Value returned by IOSTAT 0 Status of the last complete I/O operation 1 Status of a pending preread request 2 Size in bytes of the last file opened or of the last record read1 3 Status of any outstanding write request 1 When sequential-access mode is being used, the byte count returned by IOSTAT(...,2) includes the carriage-return and line- feed characters at the end of each record.