DISPLAY NAMELIST

Use the MQSC command DISPLAY NAMELIST to display the names in a namelist.

Using MQSC commands

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

IBM® i UNIX and Linux® Windows z/OS®
X X X 2CR

For an explanation of the symbols in the z/OS column, see Using commands on z/OS.

Synonym: DIS NL

DISPLAY NAMELIST

Read syntax diagramSkip visual syntax diagram DISPLAY NAMELIST ( generic-namelist-name ) WHERE(FilterCondition)ALLCMDSCOPE(' ')CMDSCOPE(qmgr-name)1CMDSCOPE(*)12QSGDISP(LIVE)QSGDISP(ALL)QSGDISP(QMGR)QSGDISP(COPY)QSGDISP(GROUP)1QSGDISP(PRIVATE)2NLTYPE(ALL)NLTYPE(NONE)NLTYPE(QUEUE)NLTYPE(Q)NLTYPE(CLUSTER)NLTYPE(AUTHINFO)2requested attrs
Requested attrs
Read syntax diagramSkip visual syntax diagram,ALTDATEALTTIMEDESCRNAMCOUNTNAMES
Notes:
  • 1 Valid only on IBM MQ for z/OS when the queue manager is a member of a queue-sharing group.
  • 2 Valid only on z/OS.

Parameter descriptions for DISPLAY NAMELIST

You must specify the name of the namelist definition you want to display. This can be a specific namelist name or a generic namelist name. By using a generic namelist name, you can display either:
  • All namelist definitions
  • One or more namelists that match the specified name
( generic-namelist-name )
The name of the namelist definition to be displayed (see Rules for naming IBM MQ objects ). A trailing asterisk (*) matches all namelists with the specified stem followed by zero or more characters. An asterisk (*) on its own specifies all namelists.
WHERE
Specify a filter condition to display only those namelists 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, you cannot use the CMDSCOPE or QSGDISP parameters as filter keywords. You cannot use NLTYPE as a filter keyword if you also use it to select namelists.
operator
This is used to determine whether a namelist 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, you 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, you 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, you 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, you 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.

    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 NONE on the NLTYPE 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*. The characters must be valid for the attribute you 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.

    You 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.
ALL
Specify this to display all the parameters. If this parameter is specified, any parameters that are requested specifically have no effect; all the parameters are displayed.

This is the default if you do not specify a generic name, and do not request any specific parameters.

[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
[z/OS] 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.

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 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.
[z/OS]QSGDISP
[z/OS] 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).

In a shared queue manager environment, use

DISPLAY NAMELIST(name) CMDSCOPE(*) QSGDISP(ALL)
to list ALL objects matching

name
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 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.

[z/OS]NLTYPE
[z/OS] Indicates the type of namelist to be displayed.

This parameter is valid only on z/OS.

ALL
Displays namelists of all types. This is the default.
NONE
Displays namelists of type NONE.
QUEUE or Q
Displays namelists that hold lists of queue names.
CLUSTER
Displays namelists that are associated with clustering.
AUTHINFO
Displays namelists that contain lists of authentication information object names.

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 the object names, and, on z/OS, their NLTYPEs 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
DESCR
Description
NAMCOUNT
Number of names in the list
NAMES
List of names

See DEFINE NAMELIST for more information about the individual parameters.