In the following sample code:
use c:\acuprod\data\ordrdetl org ix record f 143 key (1, 36, p) give c:\acuprod\data\ordrdet_sorted
the input file is ordrdetl and the output file is ordrdet_sorted. They are both indexed files with a fixed record length of 143. The primary key is 36 bytes long, starting at position 1. Complete sample code can be found in AcuSort Code Sample.