XOR-ITEMS

Returns a list comprising all values contained only once in all the items referenced.  A value contained more than once in an item will not be returned.

Syntax

XOR-ITEMS file-specifier {item-list}

Syntax Elements

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

item-list is a list of item-ids or an asterisk (*) for all items, or can be omitted if provided by an active list from a preceding list-generating command.

Comments

Uniqueness of values in an item can be guaranteed by sorting the list with the NEW-SORT-LIST command and specifying the U option.

Examples

:XOR-ITEMS SUSPECTS ATHOME ATTIME
42 Items selected.
>SAVE-LIST QLIST
[241] 'QLIST' Cataloged.

All values that appear only once in items ATHOME and ATTIME of file SUSPECTS are now in list QLIST.

:XOR-ITEMS CUSTOMERS LIFE CASUALTY MARINE
73 Items selected.
>SAVE-LIST CALL
[241] 'CALL' Cataloged.

The list in CALL contains all values that were in only one of the items LIFE, CASUALTY, and MARINE in file CUSTOMERS.

Go to top button