Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-003
5-35
Sorting With DTLSort
call also sets the memory pointed to by Buf to information about the sort. This
information is in a 44 byte structure so, for this reason, the memory pointed to by Buf
when retrieving sorted records should be at least 44 bytes long.
Upon return from this end of output call, DTLSort is again in the uninitialized state, and
the whole sequence can be repeated if another sort is to be done.
If any error occurs, DTLSort generates an appropriate error message and terminates.
DTLSort uses FastSort to do the sorting, so you can control how DTLSort works by
using the FastSort DEFINEs described in the FastSort Manual. The DEFINEs should
be used when sorting large amounts of data and must be used to request parallel
sorting.
The format of the key description that must be passed on the first call to DTLSort is:
ASC or ASCENDING
directs DTLSort to sort in ascending order on this field.
key-desc [, key-desc ]... [ (UPS nnn) ]
key-desc is:
direction field-desc [ type ]
direction is:
{ ASC }
{ ASCENDING }
{ DESC }
{ DESCENDING }
field-desc is:
{ startcol:endcol }
{ startcol for length }
type is:
{ STRING }
{ UPPER }
{ INTEGER }
{ REAL }
{ UNSIGNED }
{ SLE }
{ SIGNED LEADING EMBEDDED }
{ SLS }
{ SIGNED LEADING SEPARATE }
{ STE }
{ SIGNED TRAILING EMBEDDED }
{ STS }
{ SIGNED TRAILING SEPARATE }