DISPLAY PROCESS (display process information)

Use the MQSC command DISPLAY PROCESS to display the attributes of one or more IBM® MQ processes.

Using MQSC commands

For information on how you use MQSC commands, see Performing local administration tasks using MQSC commands.

[z/OS]You can issue this command from sources 2CR. For an explanation of the source symbols, see Sources from which you can issue MQSC commands on z/OS®.

Synonym: DIS PRO

DISPLAY PROCESS

Read syntax diagramSkip visual syntax diagram DISPLAY PROCESS ( generic-process-name ) WHERE(FilterCondition) ALL CMDSCOPE(' ')CMDSCOPE(qmgr-name)1CMDSCOPE(*)12QSGDISP(LIVE)QSGDISP(ALL)QSGDISP(QMGR)QSGDISP(COPY)QSGDISP(GROUP)1QSGDISP(PRIVATE)2requested attrs
Requested attrs
Read syntax diagramSkip visual syntax diagram,ALTDATEALTTIMEAPPLICIDAPPLTYPEDESCRENVRDATAUSERDATA
Notes:
  • 1 Valid only on z/OS when the queue manager is a member of a queue sharing group.
  • 2 Valid only on z/OS.

Parameter descriptions for DISPLAY PROCESS

You must specify the name of the process you want to display. This can be a specific process name or a generic process name. By using a generic process name, you can display either:
  • All process definitions
  • One or more processes that match the specified name
(generic-process-name)
The name of the process definition to be displayed (see Rules for naming IBM MQ objects ). A trailing asterisk (*) matches all processes with the specified stem followed by zero or more characters. An asterisk (*) on its own specifies all processes. The names must all be defined to the local queue manager.
WHERE
Specify a filter condition to display only those process definitions that satisfy the selection criterion of the filter condition. The filter condition is in three parts: filter-keyword, operator, and filter-value:
filter-keyword
Almost any parameter that can be used to display attributes for this DISPLAY command.
[z/OS]However, on z/OS, you cannot use the CMDSCOPE or QSGDISP parameters as filter keywords.
operator
This is used to determine whether a process definition satisfies the filter value on the given filter keyword. The operators are:
LT
Less than
GT
Greater than
EQ
Equal to
NE
Not equal to
LE
Less than or equal to
GE
Greater than or equal to
LK
Matches a generic string that you provide as a filter-value
NL
Does not match a generic string that you provide as a filter-value
filter-value
The value that the attribute value must be tested against using the operator. Depending on the filter-keyword, this can be:
  • An explicit value, that is a valid value for the attribute being tested.

    You can use operators LT, GT, EQ, NE, LE or GE only. However, if the attribute value is one from a possible set of values on a parameter (for example, the value DEF on the APPLTYPE parameter), you can only use EQ or NE.

  • A generic value. This is a character string (such as the character string you supply for the DESCR parameter) with an asterisk at the end, for example ABC*. If the operator is LK, all items where the attribute value begins with the string (ABC in the example) are listed. If the operator is NL, all items where the attribute value does not begin with the string are listed. Only a single trailing wildcard character (asterisk) is permitted.
ALL
Specify this to display all the parameters. If this parameter is specified, any parameters that are requested specifically have no effect; all parameters are still displayed.
On the following platforms, this is the default if you do not specify a generic name and do not request any specific parameters:
  • [AIX]AIX®
  • [IBM i]IBM i
  • [Linux]Linux®
  • [Windows]Windows
  • [z/OS]z/OS

[z/OS]On z/OS this is also the default if you specify a filter condition using the WHERE parameter, but on other platforms only requested attributes are displayed.

[z/OS]CMDSCOPE
This parameter applies to z/OS only and specifies how the command runs when the queue manager is a member of a queue sharing group.
CMDSCOPE must be blank, or the local queue manager, if QSGDISP is set to GROUP.
' '
The command runs on the queue manager on which it was entered. This is the default value.
qmgr-name
The command runs on the queue manager you specify, providing the queue manager is active within the queue sharing group.

You can specify a queue manager name, other than the queue manager on which the command was entered, only if you are using a queue sharing group environment and if the command server is enabled.

*
The command runs on the local queue manager and is also passed to every active queue manager in the queue sharing group. The effect of this is the same as entering the command on every queue manager in the queue sharing group.

You cannot use CMDSCOPE as a filter keyword.

[z/OS]QSGDISP
Specifies the disposition of the objects for which information is to be displayed. Values are:
LIVE
This is the default value and displays information for objects defined with QSGDISP(QMGR) or QSGDISP(COPY).
ALL
Displays information for objects defined with QSGDISP(QMGR) or QSGDISP(COPY).

If there is a shared queue manager environment, and the command is being executed on the queue manager where it was issued, this option also displays information for objects defined with QSGDISP(GROUP).

If QSGDISP(LIVE) is specified or defaulted, or if QSGDISP(ALL) is specified in a shared queue manager environment, the command might give duplicated names (with different dispositions).

COPY
Display information only for objects defined with QSGDISP(COPY).
GROUP
Display information only for objects defined with QSGDISP(GROUP). This is allowed only if there is a shared queue manager environment.
PRIVATE
Display information for objects defined with QSGDISP(QMGR) or QSGDISP(COPY). Note that QSGDISP(PRIVATE) displays the same information as QSGDISP(LIVE).
QMGR
Display information only for objects defined with QSGDISP(QMGR).
QSGDISP displays one of the following values:
QMGR
The object was defined with QSGDISP(QMGR).
GROUP
The object was defined with QSGDISP(GROUP).
COPY
The object was defined with QSGDISP(COPY).

You cannot use QSGDISP as a filter keyword.

Requested parameters

Specify one or more parameters that define the data to be displayed. The parameters can be specified in any order, but do not specify the same parameter more than once.

The default, if no parameters are specified and the ALL parameter is not specified, is that:
  • [UNIX, Linux, Windows, IBM i]On Multiplatforms, that is, on platforms other than z/OS, the object names are displayed.
  • [z/OS]On z/OS only, the object names and QSGDISP are displayed.
ALTDATE
The date on which the definition was last altered, in the form yyyy-mm-dd
ALTTIME
The time at which the definition was last altered, in the form hh.mm.ss
APPLICID
Application identifier
APPLTYPE
Application type. In addition to the values listed for this parameter in Parameter descriptions for DEFINE PROCESS, the value SYSTEM can be displayed. This indicates that the application type is a queue manager.
DESCR
Description
ENVRDATA
Environment data
USERDATA
User data

See DEFINE PROCESS (create a new process definition) for more information about individual parameters.