| Compaq NSK | Compaq OpenVMS | OS/400 | OS/2 Warp | UNIX systems | Windows | z/OS |
|---|---|---|---|---|---|---|
| X | X | X | X | X | X | X |
Use PING CHANNEL to test a channel by sending data as a special message to the remote queue manager, and checking that the data is returned. The data is generated by the local queue manager.
Notes:
This command can be used only for sender (SDR), server (SVR), and cluster-sender (CLUSSDR) channels (including those that have been defined automatically). It is not valid if the channel is running; however, it is valid if the channel is stopped or in retry mode.
Synonym: PING CHL
Notes:
If CHLDISP is set to SHARED, CMDSCOPE must be blank or the local queue manager.
You can specify a queue manager name only if you are using a queue-sharing group environment and if the command server is enabled.
In conjunction with the various values of the CMDSCOPE parameter, this parameter controls two types of channel:
A sending channel is shared if its transmission queue has a disposition of SHARED.
A sending channel is private if its transmission queue has a disposition other than SHARED.
The combination of the CHLDISP and CMDSCOPE parameters also controls from which queue manager the channel is operated. The possible options are:
The various combinations of CHLDISP and CMDSCOPE are summarized in Table 8
Table 8. CHLDISP and CMDSCOPE for PING CHANNEL
| CHLDISP | CMDSCOPE( ) or CMDSCOPE (local-qmgr) | CMDSCOPE (qmgr-name) | CMDSCOPE(*) |
|---|---|---|---|
| PRIVATE | Ping private channel on the local queue manager | Ping private channel on the named queue manager | Ping private channel on all active queue managers |
| SHARED | Ping a shared channel on the most suitable queue manager in the group
This might automatically generate a command using CMDSCOPE and send it to the appropriate queue manager. If there is no definition for the channel on the queue manager to which the command is sent, or if the definition is unsuitable for the command, the command fails. The definition of a channel on the queue manager where the command is entered might be used to determine the target queue manager where the command is actually run. Therefore, it is important that channel definitions are consistent. Inconsistent channel definitions might result in unexpected command behavior. | Not permitted | Not permitted |
| FIXSHARED | Ping a shared channel on the local queue manager | Ping a shared channel on the named queue manager | Not permitted |