IN |
|
|
The IN selection clause operator tests whether the content of a field is in a named select list.
Format
field IN {NO.CASE} listname field IN {NO.CASE} "filename id"
where
The IN selection clause operator causes the report output to contain only records where the content of field is in the list identified by listname or filename and id. When applied field is multivalued, at least one value must meet the condition. The EVERY qualifier can be used to test that all values are in the list.
Example
SELECT COUNTRIES SAVING SHORTCODE SAVE.LIST CTRY
This sequence of commands processes the COUNTRIES file to build a select list of country codes that it then saves as CTRY. We could then go on to do LIST CLIENTS WITH COUNTRY IN CTRY to list only CLIENTS file records that had a valid country code. |