The STATUS function returns an integer value containing information about the last I/O operation. Your program can test each bit to determine the status of the channel. Example Y% = STATUS
1 – Syntax
int-var = STATUS