ASSOC

ASSOC

Top  Previous  Next

 

The ASSOC keyword is a field qualifier to specify that the field is to be treated as part of a named association.

 

 

Format

 

field.name ASSOC "name"

 

where

 

field.nameis the name of the field (D or I-type) or an evaluated expression to be associated.

 

nameis the name of the association in which field.name is to be included. The name must be quoted to avoid its expansion as a phrase.

 

The ASSOC keyword causes field.name to be treated as part of the named association.

 

 

Example

 

LIST ORDERS PART.NO QTY EVAL "SELL * QTY" ASSOC LINE.ITEMS

 

This command processes records from the ORDERS file and reports the multivalued part numbers, quantities and calculated line total value for each record. The evaluated expression is treated as a member of the association LINE.ITEMS to which the other reported fields already belong.

 

 

See also:

ASSOC.WITH