Specifying Field_Names after Record Reformatting - mfx - 3.1

Syncsort™ MFX Programmers Guide

Product type
Software
Portfolio
Integrate
Product family
Syncsort™ software
Product
Syncsort™ MFX > MFX
Version
3.1
ft:locale
en-US
Product name
Syncsort™ MFX
ft:title
Syncsort™ MFX Programmers Guide
Copyright
2024
First publish date
2010
ft:lastEdition
2025-02-20
ft:lastPublication
2025-02-20T09:24:15.574000
If records are reformatted, (for example by using INREC, OUTREC or an E15 or E35 exit), resulting in different field positions, you will need to use field_names that correspond to the new field positions in subsequent control statements. For example, consider the following dictionary statements:
Figure 1. Sample Dictionary Statement

Suppose the following INREC control statement is used:
Figure 2. Sample INREC Control Statement

Only Customer_Name, Customer_Zip and Customer_Acct_Bal will appear in the records after INREC processing. For subsequent control statements, your dictionary names should come from a separate dictionary that defines the new record layout. For example:

Figure 3. Sample Dictionary Statements

If the repositioned fields are given unique names, as shown above, you can concatenate the old and new dictionaries and use both the old and new dictionary_names, as follows:

Figure 4. Example of Dictionary Statements in Control Statements