Writing Identical Output Files to Different Devices - 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
Copyright
2024
First publish date
2010
Last updated
2024-11-06
Published on
2024-11-06T17:38:26.716054

Example: Personnel wants a printed copy of its updated masterfile as well as copies on disk and on tape.

To generate these three copies of the same file on different devices, the following is coded.

Figure 1. JCL and Required Control Statements

Explanation: Creating the three copies of the updated masterfile requires coding only one OUTFIL statement with a FILES parameter. The FILES parameter instructs MFX to look for multiple output files defined in the JCL and to send its output to the devices specified in the SORTOFxx statements. Thus, the output that has been sorted as specified on the SORT statement (1,40,CH,A) will be sent to the printer specified in the SORTOFPR statement, to the tape volume specified in the SORTOFTP statement, and to the disk data set specified in the SORTOFDS statement.