Sample SORT Control Statements - 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
Figure 1. Sample SORT Control Statement

This sample SORT control statement indicates four control fields:

  • The first, or primary, field begins in bit 4 of byte 2, is 2 bytes long, is in binary format and is to be sorted in descending order.

  • The second control field begins in byte 8, is 2 bytes 4 bits long, is a binary format and is to be sorted in ascending order.

  • The third control field begins on byte 25, is 10 bytes long, is in character format and is to be sorted in ascending order.

  • The fourth control field begins on byte 15, is 10 bytes long, is an EBCDIC numeric field with a leading separate sign and is to be sorted in descending order.

Figure 2. Sample SORT Control Statement

This sample SORT control statement specifies the following:

  • There are three control fields. Because all three fields have the same data format (in this case, character), the FORMAT=CH subparameter is specified so that the CH value does not have to be specified for each of the fields.

  • The first control field begins on byte 20, is 5 bytes long and is to be sorted in ascending order.

  • The second control field begins on byte 5, is 10 bytes long and is to be sorted in descending order.

  • The third control field begins on byte 30, is 5 bytes long and is to be sorted in ascending order.

  • MFX will take a checkpoint.