The Toolkit help text display has a facility to provide help text dependent on circumstances. Examples of where you might use this facility are:
The Toolkit help display program makes use of label groups to determine which section of help text will be displayed. Label groups are specified as part of the ‘vector table’ entries described previously.
Up to three label groups may be specified for each vector table entry, each preceded by a space or an ‘N’. The ‘N’ indicates ‘not’, that is, not belonging to that label group. If more than one label group is specified on a vector table entry, the conditions are ANDed together.
The YDSPHLP program compares these label groups with those supplied at run time by the LBLGRP parameter to decide whether a particular vector table entry is eligible for use or is to be ignored. For a vector table entry to be eligible, all the label group conditions specified on the entry must be satisfied by the list of label groups supplied by the LBLGRP parameter. Thus, both the following conditions must be satisfied for an entry to be eligible:
If LBLGRP(*NOCHK) is specified, then no label group checking will take place.
If LBLGRP(*NONE) is specified, then only those entries with no label group at all, or with all label groups preceded by an ‘N’, will be eligible.
For example:
|
LBLGRP |
Label Group |
Result |
|
A |
|
Eligible |
|
A B |
A |
Eligible |
|
*NONE |
|
Eligible |
|
*NOCHK |
A |
Eligible |
If LBLGRP is specified and no vector table entry is found:
|
Copyright © 2014 CA.
All rights reserved.
|
|