SPLIT1R Parameter (Optional) - 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
Content type
Programmer’s Guide
Product name
Syncsort™ MFX
Title
Syncsort™ MFX Programmers Guide
Topic type
How Do I
Copyright
2024
First publish date
2010
Last edition
2024-08-27
Last publish date
2024-08-27T08:14:56.318001

The SPLIT1R=n parameter of the OUTFIL control statement causes all output records to be grouped and distributed among files in an OUTFIL group in a single rotation to maintain contiguity. The first n records are written to the first output file followed by the next n records written to the next output file and so on, with the remaining records written to the last output file regardless of n. The value of n must be specified.

SPLIT, SPLITBY=n and SPLIT1R=n are mutually exclusive.

Note that the SPLIT1R=n parameter cannot be used with any report writing (SortWriter) functions. Specifically, report writing parameters (HEADERn, TRAILERn, SECTIONS, LINES, NODETAIL, IFTRAIL) cannot be specified on the OUTFIL control statement that defines the output group.
Figure 1. Sample OUTFIL Control Statement with SPLIT1R=n

For the above example, given 36 records to be distributed in a single rotation, records 1 to 10 will be written to the first data set; records 11 to 20 will be written to the second data set; and records 21 to 36 will be written to the third data set.