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.

dspmsg<br />

Options<br />

Examples<br />

default message supplied as a parameter to the command. dspmsg directs the<br />

message to standard output. This command is intended for use in shell scripts as a<br />

replacement for the echo command.<br />

The NLSPATH environment variable and the LANG category are used to find the<br />

specified message catalog if / (slash) characters are not used in the value of the<br />

CatalogName parameter. If the catalog named by the CatalogName parameter is<br />

not found or if the message named by the MessageNumber parameter (and<br />

optional SetNumber value) is not found, then the supplied DefaultMessage value<br />

is displayed. If a DefaultMessage value is not specified, a system-generated error<br />

message is displayed.<br />

dspmsg allows up to ten string arguments to be substituted into the message if it<br />

contains the %s or %n$s, fprintf() conversion specification. Only string variables are<br />

allowed. If arguments are specified, then a DefaultMessage must also be specified.<br />

Missing arguments for conversion specifications result in a dspmsg error message.<br />

Normal fprintf() subroutine control character escape codes (for example, –n) are<br />

recognized.<br />

–d If you are receiving the default message, use this option to request<br />

debugging information on why dspmsg cannot get the message from the<br />

message catalog.<br />

–s SetNumber<br />

Specifies an optional set number. The default value for the SetNumber<br />

variable is 1.<br />

To display set number 1, message number 2 of the test.cat catalog, enter:<br />

dspmsg –s 1 test.cat 2 ’message %s not found’ 2<br />

If the message is not found, message 2 not found is displayed.<br />

du — Summarize usage of file space<br />

Format<br />

Description<br />

Options<br />

du [–a|–s[–krtx] [ pathname ...]<br />

du reports the amount of file space used by the files indicated by the given<br />

pathname. If the pathname is a directory, du reports the total amount of file space<br />

used by all files in that directory and in each subdirectory in its hierarchy. If you do<br />

not specify a pathname, du assumes the current directory. Files with multiple links<br />

are only counted once. On systems supporting symbolic links, only the disk space<br />

used by the symbolic link is counted.<br />

du measures file space in 512-byte units.<br />

–a Generates a report for all files in pathname.<br />

244 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!