18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Examples<br />

SORT (SO)<br />

The first ASCENDING; or DESCENDING; command option must be specified on the same<br />

logic line as the SORT; command. Subsequent ordering command options must be on<br />

separate lines.<br />

ASCENDING;<br />

The ASCENDING; command option is used to sort an Extract file into ascending order,<br />

based on the value of the specified data item. Several data items may be used to sort the<br />

file, but each data item requires its own separate ASCENDING; (or DESCENDING;)<br />

command option.<br />

ASCENDING can be abbreviated as ASC.<br />

DESCENDING;<br />

The DESCENDING; command option is used to sort an Extract file into descending order,<br />

based on the value of the specified data item. Several data items can be used to sort the<br />

file, but each data item requires its own separate DESCENDING; (or ASCENDING;)<br />

command option.<br />

DESCENDING can be abbreviated as DSC.<br />

data item<br />

A data item present in all records in the Extract file. Qualification of these items is<br />

discussed in your <strong>LINC</strong> Generate Operations Guide.<br />

Note: The data item must be unique in the Extract file.<br />

In the following example, Extract file A is sorted into ASCENDING order of INPUT-DATE<br />

within ASCENDING order of PRODUCT.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

In the next example, Extract file A is sorted into ASCENDING order of ADDRESS, within<br />

DESCENDING order of BRANCH, within DESCENDING order of COMPANY.<br />

<br />

<br />

<br />

<br />

v 1-239

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!