Where predicate
Two of the PIDU commands, export and list, let you construct a where predicate
to select the objects you want to export or list. In the where predicate,
you can specify one or more conditions.
The where predicate has this format:
where condition [and|or condition]...
A condition has this format:
[not] attribute operator value
- not
- Indicates that the evaluation of the condition is to be reversed.
- attribute
- Specifies the name of a single-valued attribute
that is valid for the object class. Note that multi-valued attributes
are not supported.
You can specify any attribute that is valid
for the object class. You can also specify the attribute name to
limit definitions by name. For a list of the valid attributes, see Attribute listing.
- operator
- Specifies one of the operators shown in Table 39.
- value
- Specifies the value of the attribute. All values are case-sensitive.
Therefore, be sure to type the same uppercase and lowercase letters
as are stored in the Printer Inventory. The special value null means that an attribute is not specified.
If
you use the match operator, you must specify
a regular expression as defined in "Regular Expressions" in
z/OS UNIX System Services Command Reference.
If
the value contains special characters (such as * { } - > ), enclose
the value in quotation marks.
Table 39 summarizes the operators that you can use
when you construct a condition. Some operators are valid only for
certain types of attribute values, as indicated in the table. For
example, you can use the match operator only
for attributes that accept strings values.
Table 39. Operators for attributesOperator | Operation | String values | Fixed values | Integer values |
---|
= | Equal | Yes | Yes | Yes | != | Not equal | Yes | Yes | Yes | > | Match a value greater than the specified value | Yes1 | No | Yes | < | Match a value less than the specified value | Yes1 | No | Yes | <= | Match a value less than or equal to the specified value | Yes1 | No | Yes | >= | Match a value greater than or equal to the specified value | Yes1 | No | Yes | match | Match the specified regular expression | Yes1 | No | No |
- A string value is evaluated using binary collation.
| To specify an expression with multiple conditions, separate the
conditions with one of these operators:
- and
- The expression is true only if both conditions are true.
- or
- The expression is true if either condition is true.
Multiple conditions are evaluated using an order of precedence,
with and conditions evaluated before or conditions. You can override the order by using
parentheses. Expressions in parentheses are evaluated first.
Tip:
For examples of the where predicate,
see:
|