HLPTITLE (Help Title) Keyword for Display Files--Example

Figure 187 shows how to specify the HLPTITLE keyword.

Figure 187. Specifying the HLPTITLE Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A                                      HELP
A                                      HLPPNLGRP(GENERAL LIBA/PANEL1)
A          R REC001
A  90                                  HLPTITLE('Sample Screen 1')
A N90                                  HLPTITLE('Sample Screen 2')
A          H                           HLPARA(4  10  4  29)
A                                      HLPPNLGRP(NAMETAG LIBA/PANEL1)
A          H                           HLPARA(6  10  6  19)
A  10                                  HLPPNLGRP(OPTION2TAG PANEL2)
A  90                              1 10'Sample Screen 1'
A N90                              1 10'Sample Screen 2'
A            NAME1         20A  B  4 10
A  10        OPTION2       10A  B  6 10
A

Two titles are associated with the record, so the HLPTITLE keyword is specified at the record level, where option indicators are used. The state of option indicator 90 determines which title is displayed on both the application display and the online help information display. Using an indicator and its complement guarantees that one of the two HLPTITLE keywords is in effect.