$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
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 $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.