Using comparators
When you need to specify comparators for a command (for
example LIST
) specify them in the form KEYWORD-COMPARATOR(value)
.
For example, VALFROM-GE(060124)
If no comparator is specified, EQ
is assumed.
If the PIF command does not support comparators, they are ignored.
- EQ
- Equal to
- NE
- Not equal to
- LT
- Less than
- GT
- Greater than
- LE
- Less than or equal to
- GE
- Greater than or equal to
The native PIF convention for specifying comparators is to specify
the comparator at the end of the field, and the comparison works counter
intuitively. For example, VALFROM=060124<=
means
when 060124 is less than or equal to the value of VALFROM
in
the application in the database NOT when VALFROM
in
the database is less than or equal to 060124.
The Workload Automation Programming Language notation
works the more intuitive way, therefore VALFROM-GE(060124)
means
list applications whose VALID FROM date is greater than or equal to
060124.
Hence, VALFROM-GE(060124)
translates to VALFROM=060124<=
in
native PIF.
VALFROM(060124<=)
LIST
, SELECT
,
and DELETE
. They are not valid for keywords
of any other command.