Specifying the FIELDS Parameter for Variable-Length Records - 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 you are not using the CONVERT option to convert variable-length records to fixed-length records, you must observe these rules when you specify the FIELDS parameter for variable-length records:

  • Remember to specify 4 bytes for the Record Descriptor Word in the first output field. You can include the 4 bytes in the length value of the first field if the first field in the original data record is also the first field specified in the FIELDS parameter.

  • To include any portion of the variable part of the input records, specify a position value without a length value as the last entry. The only subparameters you can specify after the position value are the HEX and TRAN conversion subparameters. (Refer to the FIELDS subparameters sections HEX and TRAN.)

  • If INREC or OUTREC processing changes the output record length, the contents of the Record Descriptor Word will be automatically revised by the sort.