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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

Localization<br />

Exit Values<br />

Messages<br />

range of 1 to 16 and represents a bit in the message descriptor code (that<br />

is, DESC=) in the WTO macro (WTO == write to operator). The default<br />

priority value is 0 (that is, no bits set).<br />

–t tag Adds tag to the start of the message.<br />

–a tag2<br />

Adds tag2 in front of all the options and the message.<br />

For more information on the destination and priority options, refer to z/<strong>OS</strong> MVS JCL<br />

Reference.<br />

1. If you issue:<br />

logger -d1 This is a message.<br />

You will see:<br />

+WELLIE4: 2097152017: This is a message.<br />

2. If you issue:<br />

logger -dl -a TheTag A message.<br />

You will see:<br />

+TheTag: WELLIE4: 213076449: A message.<br />

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

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

>0 An error occurred<br />

Possible error messages include:<br />

-f filename invalid if message given<br />

Both a filename and message was specified; only one is allowed.<br />

file filename: system error<br />

The file specified by –f filename could not be opened.<br />

Formatted log message too long -- limit LINE_MAX (number)<br />

The log message specified was longer than the limit specified by<br />

LINE_MAX.<br />

Unknown option option<br />

You specified an incorrect option to logger.<br />

logger<br />

Chapter 2. Shell command descriptions 359

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

Saved successfully!

Ooh no, something went wrong!