HLPID (Help Identifier) Keyword for Display Files--Example

Figure 180 shows how to specify the HLPID keyword:

Figure 180. Specifying the HLPID Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A          R RECORD                    HELP
A          H                           HLPARA(*CNST 1)
A                                      HLPRCD(HLPCNST1 LIB1/FILE1)
A          H                           HLPARA(*CNST 2)
A                                      HLPRCD(HLPCNST2 LIB1/FILE1)
A                                  2  4'Constant field 1' HLPID(1)
A                                  4  4'Constant field 2' HLPID(2)
A

In this example, if the cursor is located on the text 'Constant field 1' on the display and the Help key is pressed, record HLPCNST1 in file FILE1, library LIB1, is displayed as help text. If the cursor is located on the text 'Constant field 2' on the display and the Help key is pressed, record HLPCNST2 in file FILE1, library LIB1 is displayed as help text.