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.

ps<br />

Format Specifications<br />

Using the –o option, the user can define the status fields that will be displayed and<br />

their column headings. If you do not specify the –o option, ps displays the<br />

information as though you specified:<br />

-o pid,tty=TTY -o atime,comm<br />

The format specification is a list of status field names separated with blanks or<br />

commas. However, if the list of names is separated by blanks, the list must be<br />

contained in single quotes. Below you’ll find a list of status field names recognized<br />

by ps.<br />

Multiple –o format specifications can be provided and, in the case where<br />

user-specified column headings are defined, these specifications may be necessary.<br />

The first line of ps output contains column headings for each status field. Each<br />

status field has a default heading which can be overridden by the user by specifying<br />

=newheading after the status field. When a new heading is specified, it must be the<br />

last field given on the –o option. To specify additional fields, it is necessary to use<br />

additional –o statements.<br />

For example, if you wish to display the process id (pid), real user name (ruser), and<br />

command name (comm), but change the heading for the real user name from the<br />

default of (RUSER) to WHO, use:<br />

-o pid,ruser=WHO -o comm<br />

An additional –o is required when comm is specified because the last argument must<br />

be user-specified headings (in this case ruser=WHO).<br />

If you specify = with no heading, ps displays that column without a heading. If none<br />

of the columns have a heading, ps displays no heading line.<br />

In a doublebyte locale, user-defined headings may contain multibyte (doublebyte)<br />

characters.<br />

The following list shows the names that ps recognizes. The list is separated into<br />

three groups:<br />

process only<br />

These are fields which only display meaningful data for process output<br />

lines. For thread output lines, a dash is shown in these fields.<br />

thread only<br />

These are fields which only display meaningful data for thread output lines.<br />

For process output lines, a dash is shown in these fields.<br />

processes and threads<br />

These are fields that apply to both processes and threads. For example,<br />

state is meaningful because both processes and threads have a state that<br />

can be determined for them.<br />

At the end of each description, we put the default column heading inside square<br />

brackets.<br />

Process Only<br />

addr Displays the address of the process. This field is currently not supported<br />

and will display a dash. [ADDR]<br />

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