DISPLAY PROCESS
Use the MQSC command DISPLAY PROCESS to display the attributes of one or more IBM MQ processes.
Use MQSC commands
For information on how we use MQSC commands, see Performing local administration tasks using MQSC commands.
We can issue this command from sources 2CR. For an explanation of the source symbols, see Sources from which we can issue MQSC commands on z/OS .
Synonym: DIS PRO
DISPLAY PROCESS
Requested attrsNotes:- 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
We must specify the name of the process we want to display. This can be a specific process name or a generic process name. By using a generic process name, we 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.
- 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.
We 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), we 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.
- An explicit value, that is a valid value for the attribute being tested.
- 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 we do not specify a generic name and do not request
any specific parameters:
- AIX
- IBM i
- Linux
- Windows
- 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.
- 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.
We can specify a queue manager name, other than the queue manager on which the command was entered, only if we 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.
We cannot use CMDSCOPE as a filter keyword.
- 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).
We 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:- On Multiplatforms, that is, on platforms other than z/OS, the object names are displayed.
- 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 for more information about individual parameters.
Parent topic: MQSC commands