XSELECT

Compares the values in an active list against the item-ids of a specified file and returns a list of all item-ids in the file that are not in the list.

Syntax

XSELECT file-specifier

Syntax Elements

file-specifier specifies a file as defined in General Conventions.

Operation

 

Case Sensitivity

If the file specified has case-insensitive item-ids, the case of item-ids is ignored.

Examples

:GET-LIST TORNBOOKS
14 Items selected.
>XSELECT REPAIRED
5 Items selected.
>SAVE-LIST RTNSTACK
[241] 'RTNSTACK' Cataloged.

List RTNSTACK contains all the item-ids that are in file REPAIRED but not in list TORNBOOKS.

:AND-ITEMS CUSTOMERS OVERDUE LARGEAMT
173 Items selected.
>XSELECT CALL
111 Items selected.
>SAVE-LIST REMOVE
[241] 'REMOVE' Cataloged.

The AND-ITEMS command produces a list of all values that were in both items OVERDUE and LARGEAMT in file CUSTOMERS. The XSELECT compares this active list against the item-ids in file CALL. List REMOVE contains all the item-ids that were not in the active list.

See Also

NSELECT.