IBM AS/400e Computer Hardware User Manual


 
Table 16. Default Keyboard Mapping (continued)
5250 Key Function Default 3270 Keys to Select Function
Roll Down PF7
Roll Up PF8
Error Reset PF10 (System/38), PF10 or Enter (System/36 and
AS/400 system)
Sys Req PF11
Record Backspace PF12
F1 through F12 Press PA1, then one of the following: PF1 through
PF12
1
F13 through F24 Press PA2, then one of the following: PF1 through
PF12, or PF13 through F24 (if present)
Field Exit Erase EOF, then Field Tab
Attention For 3277 use Test Request, then PA1. For
3278/3279 use Attn key
Notes:
1. For example, to start F3, press PA1, wait for the system to respond, and then press PF3.
Changing a Keyboard Map:
If you want to make either minor changes to the
default keyboard map or to set a new keyboard map, use the Change Keyboard
Map (CHGKBDMAP) or the Set Keyboard Map (SETKBDMAP) command. These
commands are available from the Configure TCP/IP Telnet menu as option 7
(Change 3270 keyboard map) and option 8 (Set 3270 keyboard map), while your
terminal is in 3270 emulation mode. The key assignments you specify are in effect
until you use these commands again to specify new key assignments or until you
sign off.
Note
The difference between CHGKBDMAP and SETKBDMAP is that with
SETKBDMAP the system defaults are taken and then the changes in the
SETKBDMAP are applied. With CHGKBDMAP, the system defaults plus any
changes you have previously made during this session are taken and then the
changes in the CHGKBDMAP are applied.
The following example of a CL program sets the keyboard mapping for a 327x-type
terminal that is using Telnet to go to an AS/400 system. This program maps the
AS/400 function keys to their equivalent function keys on the 327x terminal. The
CPF8701 message is received if you attempt a CHGKBDMAP command from a
terminal not in 3270 emulation mode. By monitoring for it, the rest of the program is
not used in these circumstances.
PGM
MONMSG MSGID(CPF8701 CPF0000)
CHGKBDMAP PF1(*F1) PF2(*F2) PF3(*F3) PF4(*F4) PF5(*F5)
PF6(*F6) PF7(*DOWN) PF8(*UP) PF9(*F9)
PF10(*F10) PF11(*F11) PF12(*F12)
PA1PF1(*HELP) PA1PF2(*HLP3270)
PA1PF3(*CLEAR) PA1PF4(*PRINT)
PA1PF5(*DSPATR) PA1PF6(*TEST) PA1PF7(*F7)
PA1PF8(*F8) PA1PF9(*ATTN) PA1PF10(*RESET)
PA1PF11(*SYSREQ) PA1PF12(*BCKSPC)
ENDPGM
By storing this CL source as part of the QCLSRC file in library TCPLIB as member
CHGKBD, you can create the CL program CHGKBD into the TCPLIB library by
using the following CL command:
Chapter 6. Telnet Server 193