OUTREC/BUILD 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
Copyright
2024
First publish date
2010
Last updated
2024-11-06
Published on
2024-11-06T17:38:26.716054

The OUTREC parameter indicates how the records are to be formatted in each output file. (BUILD is an alias for OUTREC.) This parameter lets you create multiple output files which contain differently formatted records.

When the records in all multiple output files are formatted and edited identically, it is more efficient to specify a single OUTREC control statement rather than several OUTREC parameters.

The OUTREC parameter reformats the records that are to be included in the output file(s) after E35 processing, if specified. If no additional reformatting is required, omit this parameter.

All references to field positions specified in the OUTREC parameter refer to the record after processing by an E15 exit, the INREC control statement, the OUTREC control statement, and an E35 exit but before insertion of ANSI control characters.

The format of the OUTREC parameter is illustrated below.
Figure 1. OUTREC Parameter Format

The format of the OUTFIL OUTREC parameter is generally identical to the format of the FIELDS parameter of the OUTREC control statement. (See the subsections dealing with the FIELDS parameter in OUTREC Control Statement.) Note, however, that FIELDS= is not used with OUTFIL OUTREC. In addition, OUTFIL OUTREC accepts the / subparameter and can be used with the VLFILL parameter.

[n]/

The / subparameter indicates the end of a line and can be used to create multiple output lines from a single input record. Multiple slashes (coded//.../ or n/) can be used to specify leading, trailing, or embedded blank lines. At the beginning or end of the OUTREC parameter, n/ produces n blank lines. Embedded within the OUTREC parameter, n/ produces n-1 blank lines.

The / subparameter is most useful for its ability to accommodate records whose lengths exceed the width of the physical page. For an example of the / subparameter, see Printing Input Records on Multiple Output Lines

The / subparameter may not be used when LINES=ANSI or LINES=(ANSI,n) has also been specified on the OUTFIL control statement.