Handle attention identifiers (AIDs). HANDLE AID command used to specify the label or paragraph to where the control is to be passed when an AID is received from a display device.

Syntax -


Parameters -

To ignore an AID, issue a HANDLE AID command again with the same option without a label. If no HANDLE AID commands are in effect that is none have been issued or all have been cancelled, control returns to the application program.

Below options can be specified along with the HANDLE AID -

  • ANYKEY (any PA key, any PF key, or the CLEAR key, but not ENTER)
  • CLEAR (for the key of that name)
  • CLRPARTN (for the key of that name)
  • ENTER (for the key of that name)
  • LIGHTPEN (for a light-pen attention)
  • OPERID (for the operator identification card reader)
  • PA1, PA2, or PA3 (any of the program access keys)
  • PF1 through PF24 (any of the function keys)
  • TRIGGER (for a trigger field attention)

User can include 16 options in the same command.

Error Conditions -

Below are the list of error conditions may occur in combination. If more than one occurs, only the first is passed to the application program.

Error ConditionRESP2, Description & SolutionSystem Action
The command was issued by a distributed program link server application.
Solution -The command issued from remote server application and the key pressed is invalid. Check the valid key options and press the allowable keys only.
Task abnormally terminated