16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

sort<br />

Localization<br />

Exit Values<br />

Messages<br />

sort uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_COLLATE<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_NUMERIC<br />

v LC_TIME<br />

v NLSPATH<br />

The –M option works only if LC_TIME identifies a locale that contains the same<br />

month names as the P<strong>OS</strong>IX locale.<br />

See Appendix F for more information.<br />

0 Successful completion. Also returned if –c is specified and the file is in<br />

correctly sorted order.<br />

1 Returned if you specified –c and the file is not correctly sorted. Also<br />

returned to indicate a nonunique record if you specified –cu.<br />

2 Failure due to any of the following:<br />

v Missing key description after –k<br />

v More than one –o option<br />

v Missing file name after –o<br />

v Missing character after –t<br />

v More than one character after –t<br />

v Missing number with –y or –z<br />

v endposition given before a startposition<br />

v Badly formed sort key<br />

v Incorrect command-line option<br />

v Too many key field positions specified<br />

v Insufficient memory<br />

v Inability to open the output file<br />

v Inability to open the input file<br />

v Error in writing to the output file<br />

v Inability to create a temporary file or temporary filename<br />

Possible error messages include:<br />

Badly formed sort key position x<br />

The key position was not specified correctly. Check the format and try<br />

again.<br />

File filename is binary<br />

sort has determined that filename is binary because it found a NULL (’ ’)<br />

character in a line.<br />

Insufficient memory for ...<br />

This error normally occurs when you specify very large numbers for –y or<br />

–z and there is not enough memory available for sort to satisfy the request.<br />

592 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!