DELETE CHANNEL

 


Use DELETE CHANNEL to delete a channel definition.

Notes for z/OS users:

  1. This is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see the WebSphere MQ Intercommunication manual.

  2. The command fails if the channel initiator and command server have not been started, or the channel status is RUNNING, except client-connection channels, which can be deleted without the channel initiator or command server running.

  3. You can only delete cluster-sender channels that have been created manually.

  4. In the reduced function form of WebSphere MQ for z/OS supplied with WebSphere Application Server, the only channels supported are server-connection channels.

Synonym: DELETE CHL

DELETE CHANNEL
 
                                 .-CHLTABLE(QMGRTBL)-.
>>-DELETE CHANNEL(channel-name)--+-------------------+---------->
                                 '-CHLTABLE(CLNTTBL)-'
 
   .-CMDSCOPE(' ')------------. (1)
>--+--------------------------+--------------------------------->
   |                     (2)  |
   +-CMDSCOPE(qmgr-name)------+
   |             (2)          |
   '-CMDSCOPE(*)--------------'
 
   .-QSGDISP(QMGR)-------. (1)
>--+---------------------+-------------------------------------><
   +-QSGDISP(COPY)-------+
   |                (2)  |
   '-QSGDISP(GROUP)------'
 
 

Notes:

  1. Valid only on z/OS.

  2. Valid only on full function WebSphere MQ for z/OS when the queue manager is a member of a queue-sharing group.

 

Parameter descriptions

(channel-name)
The name of the channel definition to be deleted. This is required. The name must be that of an existing channel.

CHLTABLE
Specifies the channel definition table that contains the channel to be deleted. This is optional.

QMGRTBL
The channel table is that associated with the target queue manager. This table does not contain any channels of type CLNTCONN. This is the default.

CLNTTBL
The channel table for CLNTCONN channels. On Compaq OpenVMS, OS/2 Warp, OS/400, Compaq NSK, UNIX systems, and Windows, this is normally associated with a queue manager, but can be a system-wide, queue manager independent channel table if you set up a number of environment variables. For more information about setting up environment variables, see the WebSphere MQ Clients manual.

On z/OS, this is associated with the target queue manager, but separate from the main channel table.

CMDSCOPE
This parameter applies to z/OS only and specifies how the command is executed 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 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.

QSGDISP
This parameter applies to z/OS only.

Specifies the disposition of the object to which you are applying the command (that is, where it is defined and how it behaves).

COPY
The object definition resides on the page set of the queue manager that executes the command. The object was defined using a command that had the parameters QSGDISP(COPY). Any object residing in the shared repository, or any object defined using a command that had the parameters QSGDISP(QMGR), is not affected by this command.

GROUP
The object definition resides in the shared repository. The object was defined using a command that had the parameters QSGDISP(GROUP). Any object residing on the page set of the queue manager that executes the command (except a local copy of the object) is not affected by this command.

If the command is successful, the following command is generated and sent to all active queue managers in the queue-sharing group to delete local copies on page set zero:

   DELETE CHANNEL(channel-name) QSGDISP(COPY)

QMGR
The object definition resides on the page set of the queue manager that executes the command. The object was defined using a command that had the parameters QSGDISP(QMGR). Any object residing in the shared repository, or any local copy of such an object, is not affected by this command.

This is the default value.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.