Retaining Unpaired Records from Both Join Files - mfx - 3.1

Syncsort™ MFX Programmers Guide

Product type
Software
Portfolio
Integrate
Product family
Syncsort™ Software
Product
Syncsort™ MFX > MFX
Version
3.1
Language
English
ContentType
Programmer’s Guide
Product name
Syncsort™ MFX
Title
Syncsort™ MFX Programmers Guide
Topic type
How Do I
Copyright
2024
First publish date
2010
ft:lastEdition
2024-08-27
ft:lastPublication
2024-08-27T08:14:56.318001

Example: In addition to the Inactive Customers report in the previous example, the bank can produce an exception report of all transactions for which there is no master file customer record, all within the same MFX execution. This is done by also including the unpaired records from the transaction file (a “full outer join”). The output from the join operation consists of records that either have data from the unpaired records in the transaction file or the data from the records in the master file. The missing data will be blanks in each record. These records can then be reformatted and directed into two separate output file reports, as follows.

Figure 1. JCL and Control Statements

The SORTOF1 output from this example is:

Figure 2.  Sample Output

The SORTOF2 output is:

Figure 3. Sample Output