1 WHAT

  Displays the node name, terminal name, user name, process name, process
  identification code (PID), CPU time, connect time and image name for
  selected processes on some or all systems in the cluster. The default is
  to show the information for all interactive users, batch jobs, network
  processes, and subprocesses on all systems.

  Format:

    WHAT
2 Command_Qualifiers

/CLUSTER

 /CLUSTER=[(nodename[,...])]
 /NOCLUSTER

  Specifies the nodes about which you want information. If you specify one
  or more strings, WHAT lists processes on all nodes whose node names begin
  with one of the specified strings. For instance, if you specify
  /CLUSTER=(SP,H), WHAT will list processes running on all nodes in the
  cluster whose node names begin with SP or H. If no such nodes exist, no
  process will be listed.


  If you enter /CLUSTER with no nodenames, WHAT will list processes running
  on all nodes in the cluster. If you enter NOCLUSTER, WHAT will list only
  processes running on your node.

/IMAGE
 /IMAGE=(imagename[,...])
 /NOIMAGE

  Specifies the images about which you want information. If you specify one
  or more strings, WHAT lists processes running images whose names begin
  with one of the specified strings. For instance, if you enter
  /IMAGE=(FOR,PAS), WHAT will list processes running images with names
  starting with either FOR or PAS.

  If you omit the /IMAGE qualifier or enter /NOIMAGE, WHAT will list
  processes in DCL as well as those running an image. If you enter /IMAGE
  with no value, WHAT will list processes which are running any image, but
  not those which are in DCL.

/MODE

   /MODE=(processmode[,...])

  Specifies the type of processes you want WHAT to list. You may list
  INTERACTIVE, SUBPROCESS, BATCH, NETWORK, or DETACHED processes. For
  instance, if you wanted to see only batch and network processes, you would
  enter /MODE=(BATCH,NETWORK). /MODE=ALL is equivalent to
  /MODE=(INTERACTIVE,BATCH,NETWORK,SUBPROCESS,DETACHED).

  If you do not enter the /MODE qualifier, WHAT will list INTERACTIVE,
  SUBPROCESS, BATCH, and NETWORK processes; in other words it will list
  everything but DETACHED processes. 

/OUTPUT

 /OUTPUT[=file-spec]

  Controls where the output of the command is sent. If you do not enter the
  qualifier, or if you enter /OUTPUT without a file specification, the
  output is sent to the current process default output stream or device,
  identified by the logical name SYS$OUTPUT.

  If you enter /OUTPUT with a partial file specification (for example,
  specifying only a directory), WHAT is the default file name and LIS the
  default file type. If you enter a file specification, it may not include
  any wildcard characters.

/PROCESS

 /PROCESS=(processname[,...])

  Specifies the processs about whom you want information. If you specify one
  or more strings, WHAT lists processes whose processnames begin with the
  specified character string. For instance, if you enter
  /PROCESS=(NOW,THEN), WHAT lists processes processnames start with either
  NOW or THEN.

  If you omit the /PROCESS qualifier or enter /NOPROCESS, WHAT will list
  processes with any processname.

/USER

 /USER=(username[,...])

  Specifies the users about whom you want information. If you specify one or
  more strings, WHAT lists processes owned by users whose usernames begin
  with the specified character string. For instance, if you enter
  /USER=(WILL,BILL), WHAT lists processes owned by users whose usernames
  start with either WILL or BILL.

  If you omit the /USER qualifier or enter /NOUSER, WHAT will list processes
  owned by any user.

2 Examples

  1.   $ WHAT

  RUBY has 6 interactive, 1 batch, 1 network, 25 total processes
  JADE has 4 interactive, 1 batch, 1 network, 22 total processes

 Node   Term   User Name  Process Name  PID  CPU Time   Connect    Image
====== ======= ========= ============== ==== ========= ========== =========
Ruby   TXI2:   arbuth    ARBUTH         0BBC  00:00:20    0 01:02 (dcl)
Jade   TTD6:   railing   RAILING        0A1B  00:00:04    0 00:27 (dcl)
Ruby   TXF6:   jails     JAILS          0B24  00:00:07    0 02:03 tpu
Jade   TTE5:   tanshot   TANSHOT        090C  00:00:06    0 01:07 (dcl)
Ruby   TXB2:   tanshot   TANSHOT        0A45  00:00:36    0 01:35 type
Ruby   TXF1:   darrow    DARROW         0B41  00:02:03    0 03:05 tpu
Jade   Network decnet    EVL            0090  00:00:03    5 20:04 evl
Ruby   Network decnet    EVL            008F  00:00:01    5 20:09 evl
Jade   Batch   haspmgr   Auto Spooler   0118  01:09:52    5 18:18 (dcl)
Jade   TTB2:   jes       JES            011C  00:00:14    5 18:09 (dcl)
               jes       JES_1          011D  00:00:07    5 18:09 cardread
Ruby   Batch   syswork   BATCH_1554     008C  00:15:49    5 20:10 (dcl)
Jade   TTD0:   athbat    ATHBAT         0B29  00:00:07    0 03:54 mail
Ruby   TXG3:   xyzplot   XYZPLOT        0713  00:00:14    0 01:30 ***susp***
Ruby   TXF3:   xyzdistil XYZDISTIL      06CA  00:01:15    0 02:33 tpu

  The WHAT command displays the node name, terminal name, user name, process
  name, last four digits of the process id code (PID), CPU Time, connect
  time and image name of every interactive process, subprocess,  batch
  process, and network process on every node of the cluster. If a process is
  attached to both a virtual and a physical terminal, only the physical
  terminal name will be listed. If the process is suspended or in the MWAIT
  state, the image name will be listed as ***susp***.

  2.   $ WHAT/IMAGE

  RUBY has 6 interactive, 1 batch, 1 network, 25 total processes
  JADE has 4 interactive, 1 batch, 1 network, 22 total processes

 Node   Term   User Name  Process Name  PID  CPU Time   Connect    Image
====== ======= ========= ============== ==== ========= ========== =========
Ruby   TXF6:   jails     JAILS          0B24  00:00:07    0 02:03 tpu
Ruby   TXB2:   tanshot   TANSHOT        0A45  00:00:36    0 01:35 type
Ruby   TXF1:   darrow    DARROW         0B41  00:02:03    0 03:05 tpu
Jade   Network decnet    EVL            0090  00:00:03    5 20:04 evl
Ruby   Network decnet    EVL            008F  00:00:01    5 20:09 evl
               jes       JES_1          011D  00:00:07    5 18:09 cardread
Jade   TTD0:   athbat    ATHBAT         0B29  00:00:07    0 03:54 mail
Ruby   TXG3:   xyzplot   XYZPLOT        0713  00:00:14    0 01:30 ***susp***
Ruby   TXF3:   xyzdistil XYZDISTIL      06CA  00:01:15    0 02:33 tpu

  The WHAT command lists only processes running an image.

  3.   $ WHAT/MODE=INTERACTIVE/USER=(D,J)/CLUSTER=RUBY

  RUBY has 6 interactive, 1 batch, 1 network, 25 total processes

 Node   Term   User Name  Process Name  PID  CPU Time   Connect    Image
====== ======= ========= ============== ==== ========= ========== =========
Ruby   TXF6:   jails     JAILS          0B24  00:00:07    0 02:03 tpu
Ruby   TXF1:   darrow    DARROW         0B41  00:02:03    0 03:05 tpu

  The WHAT command lists interactive processes owned by users whose
  usernames begin with D or J on node RUBY.
