Example of a MERGE Statement

The following example merges records from files IN1 and IN2 according to a scheme given in compare procedure COMP. The merged result is written to file LINEOUT. The records of IN1 and IN2 have a maximum record size of 14.

MERGE(LINEOUT,COMP,14,IN1,IN2)