TESTAT Function

The TESTAT function is used to determine whether or not the terminal operator has caused what Com-plete considers to be an attention interrupt condition.

Since the TESTAT function tests for an attention interrupt condition, it follows that only terminal device types that generate an attention interrupt can be used with programs that use the TESTAT function. Normally the device types are restricted to 3270-type terminals (ENTER key) and TTY-terminals (BREAK key).

Format

The format for using the TESTAT function is:

TESTAT (retcode) 
Return Codes

The following return codes are issued by the TESTAT function to indicate the attention interrupt status caused by the terminal user:

0 An attention interrupt was not received.
4 An attention interrupt was received.
8 The terminal device in use is not an attention interrupt device.
Abends

There are no abnormal termination situations that can be directly associated with the TESTAT function.