# DIFF-LIST

Updated: 10/19/2020, 10:24:56 AM
Created: 10/19/2020, 10:24:56 AM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)

# Description

Creates a list from two stored lists. The new list contains all the items in the first list less any like items from the second list. It takes the general form:

DIFF-LIST {DICT} File1 List1 TO {TargetList}
Less: {({DICT} File2} List2
1
2

where:

  • List1 and List2 are the names of stored lists.
  • File1 and File2 represent the files in which the lists are stored. If File2 is not specified then List2 is assumed to be in File1.
  • TargetList is the name of the resultant list. If it is not specified then an active list is created otherwise it is written to file defined to hold stored lists.

# Example

File PROFILES holds the items LISTA and LISTB:

LISTA LISTB
Jennifer Michelle
Carrie Sheila
Michelle Mary
Renee Carrie
Maryanne
Cindy

The command:

DIFF-LIST PROFILES LISTA TO LISTV
Less:LISTB
1
2

generates a stored list called LISTV that contains the elements Jennifer, Renee, Maryanne and Cindy.

The command:

DIFF-LIST PROFILES LISTB
Less:(PROFILES LISTA
1
2

generates an active list that contains the elements Sheila and Mary.

Back to List Processing