LIST.INTER |
![]() ![]() ![]() |
The LIST.INTER command creates a new named select list from the entries that appear in both of two other named lists.
Format
LIST.INTER list1 {list2 {tgt.list}} {COUNT.SUP}
where
The LIST.INTER command allows construction of one select list from two others. The resultant list will contain all of the items that are in both list1 and list2.
The result list will replace any existing list with the name tgt.list. The ordering of tgt.list is undefined.
@SYSTEM.RETURN.CODE is set to the number of items in the new list or a negative error code.
Example
LIST.INTER FRANCE.CUSTOMERS MAJOR.CUSTOMERS MERGED.CUSTOMERS 41 records selected.
This example merges two previously saved select lists, one holding keys for customers in France, the other for major customers to form a new list containing the major customers in France.
See also: |