| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
Here are the steps to follow to perform an in-memory sort of up to 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="@00@" | to begin an ascending sort, or |
| FILE (lun) CTL="@01@" | to begin a descending sort |
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.