[z/OS]

DISPLAY SMDSCONN (display shared message data sets connection information) on z/OS

Use the MQSC command DISPLAY SMDSCONN to display status and availability information about the connection between the queue manager and the shared message data sets for the specified CFSTRUCT.

Using MQSC commands

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

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:

DISPLAY SMDSCONN

Read syntax diagramSkip visual syntax diagramDISPLAY SMDSCONN(qmgr-name*)CFSTRUCT(structure-name)WHERE(FilterCondition)CMDSCOPE(' ')CMDSCOPE(qmgr-name)CMDSCOPE(*)

Parameter descriptions for DISPLAY SMDSCONN

The parameter descriptions for the DISPLAY SMDS command.
SMDSCONN(qmgr-name|*)
Specify the queue manager which owns the SMDS for which the connection information is to be displayed, or an asterisk to display the connection information for all shared message data sets associated with the specified CFSTRUCT.
CFSTRUCT( structure-name )
Specify the structure name for which the shared message data set connection information is required.
WHERE
Specify a filter condition to display only the SMDS connection information that satisfies the selection criterion of the filter condition. The filter condition is in three parts: filter-keyword, operator, and filter-value:
filter-keyword
Any parameter that can be used to display attributes for this DISPLAY command.
operator
This is used to determine whether a CF application structure 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 any of the operators except LK and NL. However, if the value is one from a possible set of values returnable on a parameter (for example, the value YES on the RECOVER 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. You cannot use a generic filter-value for parameters with numeric values or with one of a set of values.

    You can only use operators LK or NL for generic values on the DISPLAY SMDSCONN command.

CMDSCOPE
This parameter specifies how the command runs when the queue manager is a member of a queue sharing 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.

Usage notes for DISPLAY SMDSCONN

This command is only supported when the CFSTRUCT definition is currently using the option OFFLOAD(SMDS).

This information indicates whether the queue manager is currently able to allocate and open the data set.

The following results are returned for each selected connection:
SMDSCONN
The name of the queue manager which owns the shared message data set for this connection.
CFSTRUCT
The name of the coupling facility application structure.
OPENMODE
The mode in which the data set is currently open by this queue manager. This is one of the following:
NONE
The data set is not currently open.
READONLY
The data set is owned by another queue manager and is open for read-only access.
UPDATE
The data set is owned by this queue manager and is open for update access.
RECOVERY
The data set is open for recovery processing.
STATUS
The connection status as seen by this queue manager. This is one of the following:
CLOSED
This data set is not currently open.
OPENING
This queue manager is currently in the process of opening and validating this data set (including space map restart processing when necessary).
OPEN
This queue manager has successfully opened this data set and it is available for normal use.
CLOSING
This queue manager is currently in the process of closing this data set, including quiescing normal I/O activity and storing the saved space map if necessary.
NOTENABLED
The SMDS definition is not in the ACCESS(ENABLED) state so the data set is not currently available for normal use. This status is only set when the SMDSCONN status does not already indicate some other form of failure.
ALLOCFAIL
This queue manager was unable to locate or allocate this data set.
OPENFAIL
This queue manager was able to allocate the data set but was unable to open it, so it has now been deallocated.
STGFAIL
The data set could not be used because the queue manager was unable to allocate associated storage areas for control blocks, or for space map or header record processing.
DATAFAIL
The data set was successfully opened but the data was found to be invalid or inconsistent, or a permanent I/O error occurred, so it has now been closed and deallocated.

This may result in the shared message data set itself being marked as STATUS(FAILED).

AVAIL
The availability of this data set connection as seen by this queue manager. This is one of the following:
NORMAL
The connection can be used and no error has been detected.
ERROR
The connection is unavailable because of an error.

The queue manager may try to enable access again automatically if the error may no longer be present, for example when recovery completes or the status is manually set to RECOVERED. Otherwise, it can be enabled again using the START SMDSCONN command in order to retry the action which originally failed.

STOPPED
The connection cannot be used because it has been explicitly stopped using the STOP SMDSCONN command. It can only be made available again by using a START SMDSCONN command to enable it.
EXPANDST
The data set automatic expansion status. This is one of the following:
NORMAL
No problem has been noted which would affect automatic expansion.
FAILED
A recent expansion attempt failed, causing the DSEXPAND option to be set to NO for this specific data set. This status is cleared when ALTER SMDS is used to set the DSEXPAND option back to YES or DEFAULT
MAXIMUM
The maximum number of extents has been reached, so future expansion is not possible (except by taking the data set out of service and copying it to larger extents).

Note, that the command works only if the structure is currently connected, that is, some shared queues allocated to that structure have been opened.