| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
Here are the steps to follow to perform a sort/merge of more than 64K bytes of data.
FILE (lun) CTL="@02xxxx@"
This control sets the record length for the sort records, where xxxx is the number of bytes in hex. The maximum value is 0400 hex (1,024 decimal).
| FILE (lun) CTL="@04xxyy@" | to specify ascending sort/merge, or |
| FILE (lun) CTL="@05xxyy@" | to specify descending sort/merge |
where xx and yy are the logical unit numbers in hex of two open Comet sequential work files.
FILE (lun) CTL="@06@"
Control will not be returned to your program until the sort is complete.
FILE (lun) CTL="@03@"
Subsequent reads from the sort area will proceed from the first record.