DISPLAY CHANNEL
Use the MQSC command DISPLAY CHANNEL to display a channel definition.
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 CHL
DISPLAY CHANNEL
Requested attrsNotes:- 1 Valid only on z/OS when the queue manager is a member of a queue sharing group.
- 2 Not valid for z/OS client-connection channels.
- 3 Valid only on z/OS.
- 4 Valid only for RCVR, RQSTR, CLUSRCVR and (for z/OS only) SVRCONN channel types.
- 5 Not valid on z/OS.
Usage notes
We can only display cluster-sender channels if they were created manually. See Cluster channels.The values shown describe the current definition of the channel. If the channel has been altered since it was started, any currently running instance of the channel object might not have the same values as the current definition.
Parameter descriptions for DISPLAY CHANNEL
We must specify the name of the channel definition we want to display. It can be a specific channel name or a generic channel name. By using a generic channel name, we can display either:- All channel definitions
- One or more channel definitions that match the specified name
- (generic-channel-name)
- The name of the channel definition to be displayed (see Rules for naming IBM MQ objects ). A trailing asterisk (*) matches all channel definitions with the specified stem followed by zero or more characters. An asterisk (*) on its own specifies all channel definitions.
- WHERE
- Specify a filter
condition to display only those channels 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. However, we cannot use the CMDSCOPE, QSGDISP, or MCANAME parameters as filter keywords. We cannot use TYPE (or CHLTYPE) if it is also used to select channels. Channels of a type for which the filter keyword is not a valid attribute are not displayed.
- operator
- This is used to determine whether a channel 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
- CT
- Contains a specified item. If the filter-keyword is a list, we can use this to display objects the attributes of which contain the specified item.
- EX
- Does not contain a specified item. If the filter-keyword is a list, we can use this to display objects the attributes of which do not contain the specified item.
- CTG
- Contains an item which matches a generic string that you provide as a filter-value. If the filter-keyword is a list, we can use this to display objects the attributes of which match the generic string.
- EXG
- Does not contain any item which matches a generic string that you provide as a filter-value. If the filter-keyword is a list, we can use this to display objects the attributes of which do not match the generic string.
- 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 SDR on the TYPE 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*. The characters must be valid for the
attribute we are testing. 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.
We cannot use a generic filter-value for parameters with numeric values or with one of a set of values.
- An item in a list of values. The value can be explicit or, if it is a character value, it can be explicit or generic. If it is explicit, use CT or EX as the operator. For example, if the value DEF is specified with the operator CT, all items where one of the attribute values is DEF are listed. If it is generic, use CTG or EXG as the operator. If ABC* is specified with the operator CTG, all items where one of the attribute values begins with ABC are listed.
- An explicit value, that is a valid value for the attribute being tested.
- ALL
- Specify ALL to
display the results of querying all the parameters. If ALL is specified, any request for a specific
parameter is ignored. The result of querying with ALL is to return the results for all of the
possible parameters.
This is the default, if we do not specify a generic name and do not request any specific parameters.
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.
If no parameters are specified (and the ALL parameter is not specified or defaulted), the default is that the channel names only are displayed.
On z/OS, the CHLTYPE and QSGDISP values are also displayed.
- CMDSCOPE
- This parameter specifies how the command is executed when the queue manager is a member of a
queue sharing group.
- ' '
- The command is executed on the queue manager on which it was entered. This is the default value.
- qmgr-name
- The command is executed 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 is executed 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.
- 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(ALL) is specified in a shared queue manager environment, the command might give duplicated names (with different dispositions). Note: In the QSGDISP(LIVE) case, this occurs only where a shared and a non-shared queue have the same name; such a situation should not occur in a well-managed system. In a shared queue manager environment, useDISPLAY CHANNEL(name) CMDSCOPE(*) QSGDISP(ALL)
to list ALL objects matchingname
in the queue sharing group without duplicating those in the shared repository. - 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 only 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.
- TYPE
- This is optional.
It can be used to restrict the display to channels of one type. The value is one of the following:
- ALL
- Channels of all types are displayed (this is the default).
- SDR
- Sender channels only are displayed.
- SVR
- Server channels only are displayed.
- RCVR
- Receiver channels only are displayed.
- RQSTR
- Requester channels only are displayed.
- CLNTCONN
- Client-connection channels only are displayed.
- SVRCONN
- Server-connection channels only are displayed.
- CLUSSDR
- Cluster-sender channels only are displayed. ).
- CLUSRCVR
- Cluster-receiver channels only are displayed. ).
- AMQP
- AMQP channels only are displayed.
CHLTYPE( type ) can be used as a synonym for this parameter. ,
Requested parameters
Specify one or more DISPLAY CHANNEL parameters that define the data to be displayed. We can specify the parameters in any order, but do not specify the same parameter more than once.
Some parameters are relevant only for channels of a particular type or types. Attributes that are not relevant for a particular type of channel cause no output, nor is an error raised. The following table shows the parameters that are relevant for each type of channel. There is a description of each parameter after the table. Parameters are optional unless the description states that they are required.Parameter | SDR | SVR | RCVR | RQSTR | CLNT- CONN | SVR- CONN | CLUS- SDR | CLUS- RCVR | AMQP |
---|---|---|---|---|---|---|---|---|---|
AFFINITY | |||||||||
ALTDATE | |||||||||
ALTTIME | |||||||||
AMQPKA | |||||||||
AUTOSTART | |||||||||
BATCHHB | |||||||||
BATCHINT | |||||||||
BATCHLIM | |||||||||
BATCHSZ | |||||||||
CERTLABL | |||||||||
channel-name | |||||||||
CHLTYPE | |||||||||
CLNTWGHT | |||||||||
CLUSNL | |||||||||
CLUSTER | |||||||||
CLWLPRTY | |||||||||
CLWLRANK | |||||||||
CLWLWGHT | |||||||||
COMPHDR | |||||||||
COMPMSG | |||||||||
CONNAME | |||||||||
CONVERT | |||||||||
DEFCDISP | |||||||||
DEFRECON | |||||||||
DESCR | |||||||||
DISCINT | |||||||||
HBINT | |||||||||
KAINT | |||||||||
LOCLADDR | |||||||||
LONGRTY | |||||||||
LONGTMR | |||||||||
MAXINST | |||||||||
MAXINSTC | |||||||||
MAXMSGL | |||||||||
MCANAME | |||||||||
MCATYPE | |||||||||
MCAUSER | |||||||||
MODENAME | |||||||||
MONCHL | |||||||||
MRDATA | |||||||||
MREXIT | |||||||||
MRRTY | |||||||||
MRTMR | |||||||||
MSGDATA | |||||||||
MSGEXIT | |||||||||
NETPRTY | |||||||||
NPMSPEED | |||||||||
PASSWORD | |||||||||
PORT | |||||||||
PROPCTL | |||||||||
PUTAUT | 1 | ||||||||
QMNAME | |||||||||
RESETSEQ | |||||||||
RCVDATA | |||||||||
RCVEXIT | |||||||||
SCYDATA | |||||||||
SCYEXIT | |||||||||
SENDDATA | |||||||||
SENDEXIT | |||||||||
SEQWRAP | |||||||||
SHARECNV | |||||||||
SHORTRTY | |||||||||
SHORTTMR | |||||||||
SPLPROT | |||||||||
SSLCAUTH | |||||||||
SSLCIPH | |||||||||
SSLPEER | |||||||||
STATCHL | |||||||||
TPNAME | |||||||||
TPROOT | |||||||||
TRPTYPE | |||||||||
USECLTID | |||||||||
USEDLQ | |||||||||
USERID | |||||||||
XMITQ |
- PUTAUT is valid for a channel type of SVRCONN on z/OS only.
For more details of these parameters, see DEFINE CHANNEL. Parent topic: MQSC commands