Figure 176 shows how to specify the HLPCMDKEY keyword. The first
record is the application record format and the second record is the
application help record format.
Figure 176. Specifying the HLPCMDKEY Keyword
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R APPRCD CA01
00020A CA03
00030A CF12(12)
00040A CA04
00050A HELP
00060A H HLPRCD(HELPRCD)
00070A HLPARA(1 1 24 80)
00080A 8 2'THIS IS THE APPLICATION'
00090A 9 2'RECORD FORMAT'
00100A INPUT1 10 B 12 10
00110A INPUT2 10 B 13 10
00120A INPUT3 10 B 14 20
00130A*
00140A R HELPRCD HLPCMDKEY
00150A CA01(11)
00160A CF03
00170A CF05
00180A CF12
00190A 5 8'SPECIFY COMPANY NAME'
00200A 6 9'SPECIFY STREET'
00210A 7 10'SPECIFY CITY, STATE, ZIP'
A
If the user is on the application help screen, the following occurs:
- If the CMD1 key is pressed, control is returned to the application
program, but no data from the application record format is transmitted to the
application program. Response indicator 11 is not set on since it was
specified on the help record format rather than the application record
format.
- If the CMD12 key is pressed, control is returned to the application
program and data from the application record format is transmitted to the
application program. Response indicator 12 is on.
- If the CMD5 key is pressed, it functions as the Enter key. The same
CA or CF keys must be specified on both the application record format and the
application help record format for control to be returned to the application
program.
- If the CMD3 key is pressed, it functions as the Enter key. The
corresponding CA or CF keys must be specified on both the application help
record format and the application record format for control to be returned to
the program.
- If the CMD4 key is pressed, it results in a message indicating that the
CMD4 key is not allowed. The same CA or CF keys must be specified on
both the application record format and the application help record format in
order for control to be returned to the application program.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.