The remaining OPT= value, OPT=IGEN (Inverse GENeric), has special use. The definition is: Retrieve the entry with the longest key value equal to the supplied key value, but at least one character long. For example, a search key of ABCDE searches as follows:
This retrieval option is especially suited for screening messages by message identifier, where generic identifiers (for example, IEF) control all messages that start with that identifier, and less-generic identifiers (degenerating to specifics, such as IEF431I) override the generic identifier in a particular case.
By loading a table with these identifiers, an incoming message identifier can be looked up in one GET OPT=IGEN statement, to find the most-specific match. This avoids looping to examine lists of shorter and shorter identifiers.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |