$ORTPARM Processing for Century Window COBOL Applications - 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

The $ORTPARM DD facility is particularly useful for COBOL sorts requiring century window processing of year data with MFX’s year data formats. The year data formats are not supported by COBOL. Therefore, when a data format specification needs to be changed for century window processing, it is necessary to override SORT control statements generated by COBOL. The override can be accomplished with a $ORTPARM DD statement. The following example shows a $ORTPARM DD used for this purpose.

Figure 1. Sample $ORTPARM DD Statement for Century Window Processing

In this example, the 2-digit year field (10,2) will have century window processing applied to it via the Y2Z year data format and the CENTWIN option.

As described in the previous section, multiple sort invocations by the same COBOL program would require multiple $ORTPARM DD statements, each with the FREE=CLOSE parameter.