Functional Description
Purpose
This function compares two partial strings to see if they match.
Technical Specification
Processing
This business function can be used with B0000165 "WildCard Number of Elements Count", which accepts a
wildcard search description as input and counts the number of characters and spaces until a null
character or an asterisk is encountered at the end of the input string. The number of non-asterisk
elements are returned in the integer data item "nPartialFilterElements".
The number of filter elements can then be passed into this business function B0000166 "WildCard
Filter Compare", which will compare the wildcard search description to a passed-in data item (to the length
specified in Partial Filter Elements). If a partial field match is found, a flag of "Y" is returned
through the data structure.
^
D0000166 - WildCard Filter Compare
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szSearchDescription | DC | char | NONE | NONE |
Input for the partial search description entered by the user followed by an optional asterisk.
| ||||
szComparisonDataItem | ALPH | char | NONE | NONE |
Input for the table field name to search (from business view) for comparison to the user's partial
| ||||
nPartialFilterElements | INT01 | integer | NONE | NONE |
Input for the number of non-asterisk elements in the partial search description entered by the user
| ||||
cPartialFieldMatchFlag | EV01 | char | NONE | NONE |
Returns a value of 'Y' if a partial field match is found.
|
None |
None |