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.
XSELECT file-specifier
file-specifier specifies a file as defined in General Conventions.
:GET-LIST TORNBOOKS14 Items selected. >XSELECT REPAIRED5 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 LARGEAMT173 Items selected. >XSELECT CALL111 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.