Previous Topic: &MAIFRLU

Next Topic: &MAILOCK


&MAIINKEY

Indicates the value of the key used to enter data.

Returns the value of the key used to enter data when a data stream is received from the SLU (terminal), as follows:

ATTN

the ATTN key

CLEAR

the CLEAR key

CARD

operator ID card

ENTER

the Enter key

MAG

magnetic card

NONE

no AID generated

PA1 to PA3

Program Attention Key 1 to 3

PF1 to PF24

Program Function Key 1 to 24

REQ

test request

SEL

selector pen attention

SF

inbound structured field

TRIG

trigger action

Example: &MAIINKEY

&IF &MAIINKEY = PF3 &THEN &GOTO .END

Notes:

When used to test the key used to enter data, an &MAIINKEY returns a null value if there is no outstanding data. Data is outstanding from the time an &MAIREAD is satisfied until an &MAICONT, &MAIDEL or another &MAIREAD is issued.

&MAIINKEY is sensitive to the setting of the &CONTROL PFKMAP option.

If &CONTROL PFKMAP is in effect, F3 to F24 are mapped into F1 to F12. For example, receipt of PF13 results in &MAIINKEY being set to a value of PF1.

More information:

&MAICONT

&MAIREAD

&MAIDEL