AND-LISTS

Returns a list comprising all attribute values contained in each of two or more lists, or n times altogether if specified, that is, the intersection of the lists.

Syntax

AND-LISTS list-name list-name {list-name}...{(option}

Syntax Elements

list-name is the name of a saved list.

Option

n number of times attribute value must occur for inclusion in list (default is number of items).

Comments

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

Examples

:AND-LISTS OVERDUE LARGEAMT
429 Items selected.
>SAVE-LIST PHONECALL
[241] 'PHONECALL' Cataloged.

All values that were in both lists OVERDUE and LARGEAMT are now in list PHONECALL.

:AND-LISTS SMKR DRNK OVFF OVWT
7899 Items selected.
>SAVE-LIST BIGRSK
[241] 'BIGRSK' Cataloged.

The list in BIGRSK contains all values that were in every list referenced in the AND-LISTS command.

Go to top button