sysVar.eventKey

The system variable sysVar.eventKey identifies the key that the user pressed to return a form to an EGL text 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 sysVar.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 sysVar.eventKey as an operand in an if or while statement.

The characteristics of this system variable are as follows:

Primitive type

CHAR

Data length

1

Value saved across segments

No

sysVar.eventKey is not valid in a batch program.

Example

The comparison operator for sysVar.eventKey is either is or not, as in this example:

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

Related reference
Logical expressions