Function Key Indicators

You can use function key indicators in a program that contains a WORKSTN device if the associated function keys are specified in data description specifications (DDS). Function keys are specified in DDS with the CFxx or CAxx keyword. For an example of using function key indicators with a WORKSTN file, see the WORKSTN chapter in the IBM Rational Development Studio for i: ILE RPG Programmer's Guide.

Function Key Indicator Corresponding Function Key Function Key Indicator Corresponding Function Key
KA 1 KM 13
KB 2 KN 14
KC 3 KP 15
KD 4 KQ 16
KE 5 KR 17
KF 6 KS 18
KG 7 KT 19
KH 8 KU 20
KI 9 KV 21
KJ 10 KW 22
KK 11 KX 23
KL 12 KY 24

The function key indicators correspond to function keys 1 through 24. Function key indicator KA corresponds to function key 1, KB to function key 2 ... KY to function key 24.

Function key indicators that are set on can then be used to condition calculation or output operations. Function key indicators can be set off by the SETOFF operation.



[ Top of Page | Previous Page | Next Page | Contents | Index ]