XML Record Filter Support
9.0D
To allow quicker access to records, a new record filter concept has been added to the READ statement. A record filter is a query string that is decoded and used during the initial READ statement and all subsequent READKG and READKGP statements.
Note the following:
READKG and READKGP statements keep a separate file pointer when performing READ operations.
The record filter query string consists of one or more expressions separated by logical operators.
An expression consists of a field name, an operator, and a value. The operators supported are =, <>, <, <=, >, >= and LIKE (as in SQL syntax). The values can be either a quoted string for a string match, or a numeric value for a numeric comparison.
The logical operators are OR, AND, and NOT.
Expressions can be grouped by using the ( and ) characters.
The LIKE operator performs a pattern matching string comparison where an underscore (_) matches any one character, a % matches zero or more characters, and the backslash (\) is the forcing character.
Examples:
See Also: XML Support
![]() |