OR-ITEMS

Returns a list comprising one copy of any value contained in any of two or more items, that is, the union of the values.

Syntax

OR-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.

Examples

:OR-ITEMS BOOKS SHIPS PIRATES
42 Items selected.
>SAVE-LIST SPLIST
[241] 'SPLIST' Cataloged.

All values that were in either item SHIPS or PIRATES in file BOOKS are now in list SPLIST.

:OR-ITEMS POISONS CRAMPS SWEAT NUMBNESS
37 Items selected.
>SAVE-LIST MSW
[241] 'MSW' Cataloged.

The list in MSW contains all values that were in any item CRAMPS, SWEAT, or NUMBNESS in file POISONS.

Go to top button