eventKey

The converseVar.eventKey system variable identifies the key that the user pressed to return a text form to an EGL program. The value is reset each time that the program runs the converse statement.

If the EGL code has no input form, the initial value of converseVar.eventKey is ENTER.

The following values are valid (whether uppercase, lowercase, or a combination):
Note: PA keys are always treated as bypass keys.

You can use converseVar.eventKey as an operand in an if or while statement.

The characteristics of this system variable are as follows:
Primitive type
CHAR
Data length
8
Value saved across segments
No

converseVar.eventKey is not valid in a basic program.

Example

Either is or not is the comparison operator for converseVar.eventKey. Here is an example:

  if (converseVar.eventKey IS PF3)
    exit program(0);
  end

Do not use the operators for equal (==) or not equal (!=).

Compatibility

Table 1. Compatibility considerations for eventKey
Platform Issue
IMS/VS PA1, PA2, and PA3 are reserved for paging by IMS/VS. If your installation uses PF12 for the IMS™ local copy function, PF12 cannot be used. If these keys are pressed, no AID value is passed to the program.

Feedback