Attention Identifier (AID) Key
An Attention Identifier (AID) key is a special key on an IBM 3270 terminal (or its emulator) that, when pressed, signals an event or request to the host mainframe application. It causes the terminal's input buffer contents, along with cursor position and modified field indicators, to be transmitted to the z/OS application for processing.
Key Characteristics
-
- 3270 Terminal Specific: Primarily associated with IBM 3270 display devices and their emulators, which operate in a block-mode fashion.
- User-Initiated Event: Activated by the end-user pressing a designated key, such as
Enter,Clear,Program Function (PF)keys (PF1-PF24), orProgram Attention (PA)keys (PA1-PA3). - Data Transmission Trigger: An AID key press is the primary mechanism that triggers the transmission of user-entered data from the terminal to the host application.
- Application Event Indicator: The host application receives an AID byte (or similar indicator) that identifies which specific AID key was pressed, allowing it to determine the user's intended action.
- Synchronous Interaction: Facilitates a synchronous, request-response interaction model where the application processes input and then sends a new screen or response.
- Standard Key Set: Includes commonly used keys like
Enter(default input submission),Clear(resets screen),PFkeys (for specific functions), andPAkeys (for system attention or interruption).
Use Cases
-
- Navigating Menus and Panels: Users press
Enteror aPFkey to select options, move between panels, or execute commands within TSO/ISPF or CICS applications. - Submitting Data Input: After entering data into fields on a screen (e.g., an order entry form), pressing
Entertransmits the data to the application for validation and processing. - Executing Application Functions:
PFkeys are widely used to trigger specific actions, such asPF3for Exit,PF7for Page Up,PF8for Page Down,PF12for Cancel, orPF1for Help. - Online Transaction Processing: In CICS, an AID key press initiates or continues a transaction, allowing the CICS program to receive input and respond, driving the application flow.
- Error Recovery or Interruption: Less common, but
PAkeys can sometimes be used to interrupt a long-running process or signal a system-level attention, thoughClearis more often used to reset a screen after an error.
- Navigating Menus and Panels: Users press
Related Concepts
AID keys are fundamental to the 3270 data stream protocol, acting as the signal for the terminal to send its buffer contents to the host. In CICS (Customer Information Control System), an AID key press is the primary driver for transaction processing, causing a CICS program to receive input via commands like EXEC CICS RECEIVE MAP or EXEC CICS RECEIVE. Similarly, TSO/ISPF relies on AID keys for command execution and panel navigation. COBOL programs interacting with 3270 terminals (often via BMS maps in CICS) explicitly check the AID byte to determine which key was pressed and branch their logic accordingly.
- Consistent Key Assignments: Establish and adhere to consistent assignments for
PFkeys across all applications (e.g.,PF3for Exit,PF1for Help) to enhance user experience and reduce training requirements. - Clear On-Screen Instructions: Always provide clear prompts and indicators on the screen to inform users about the functions assigned to available
PFkeys and other AID keys. - Robust Error Handling: Implement comprehensive error handling in application code to gracefully manage unexpected or invalid AID key presses, guiding the user back to a valid state.
- Minimize
PAKey Reliance: Avoid usingPAkeys for primary application logic, as they are generally intended for system-level attention and can be less predictable in application flow thanPForEnterkeys. - Optimize Data Transmission: Design screens and application logic to minimize unnecessary data transmission with each AID key press, especially in high-volume environments, to improve network efficiency and application responsiveness.