Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

DIFF-LIST

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

 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

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

 

The command:

DIFF-LIST PROFILES LISTB
Less:(PROFILES LISTA

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


Back to List Processing

Was this article helpful?