ContentsIndexPreviousNext

Code Examples

Code example 1:

*Merge sales prospects lists.
   MERGE NATIONAL-MERGE-FILE
      ON ASCENDING KEY PROSPECT-CLASS
                       SALES-REP-NUMBER
      USING  WESTERN-REGION-FILE,
             EASTERN-REGION-FILE,
             SOUTHERN-REGION-FILE
      GIVING NATIONAL-PROSPECT-FILE.

Code example 2:

(An extended code sample of this example may be found at the end of this reference entry.)

*Merge sales prospects lists and use an
*OUTPUT PROCEDURE to do processing on the list
*before writing it to the output file.
   MERGE NATIONAL-MERGE-FILE
      ON ASCENDING KEY PROSPECT-CLASS
                       SALES-REP-NUMBER
      USING  WESTERN-REGION-FILE,
             EASTERN-REGION-FILE,
             SOUTHERN-REGION-FILE
      OUTPUT PROCEDURE IS PROCESS-PROSPECT-LIST.