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