Previous Topic: CHANGE PRIORITY (DC/UCF)Next Topic: COMMIT


CHECK TERMINAL (DC/UCF)

The CHECK TERMINAL statement tests whether a previously issued asynchronous I/O operation is complete. If a READ TERMINAL, WRITE TERMINAL, or WRITE THEN READ TERMINAL request specifies the NOWAIT option, the program must issue a CHECK TERMINAL request before specifying any other I/O operation. If the I/O operation is not complete, the system suspends task execution. When the I/O operation is complete, the task resumes execution according to its established dispatching priority.

Syntax
►►─── CHECK TERMINAL; ────────────────────────────────────────────────────────►◄

Status Codes

Upon completion of the CHECK TERMINAL function, the ERROR_STATUS field in the IDMS DC communications block indicates the outcome of the operation:

0000

The request has been serviced successfully.

4519

The input area specified for the return of data is too small; the returned data has been truncated to fit the available space.

4525

The output operation has been interrupted; the terminal operator has pressed ATTENTION or BREAK.

4526

A logical error (for example, an invalid control character) has been encountered in the output data stream.

4527

A permanent I/O error has occurred during processing.

4528

The dial-up line for the terminal being used has been disconnected.

4531

The terminal request block (TRB) contains an invalid field, indicating a possible error in the program's parameters.

4539

The terminal device associated with the issuing task is out of service.