Data centers often use the same masterfile for different purposes. Assume, for example, that you wanted to produce two reports using a masterfile of cash-receipt records. One report was to present the total cash receipts for the current month; the second, for the year to date. This would typically entail running a separate sort for each report. SortWriter’s multiple-output feature, however, enables you to produce both reports with a single pass of the sort. In addition, you can specify the same or different devices to receive the separate output files.
Note: All the output files will be sequenced in the same way, as specified on the SORT or MERGE
statement. If you need to sort the output files differently, you should use Syncsort
PipeSort, a Precisely product that works with Syncsort™ MFX to reduce total elapsed time
by generating multiple, differently sequenced output files from a single read of the
input data.
To generate multiple output files, code the OUTFIL statement. For syntax of the OUTFIL control statement, see OUTFIL Control Statement.