QUERY CHANNEL

Count the number of containers that are in a channel.

QUERY CHANNEL

Read syntax diagramSkip visual syntax diagramQUERY CHANNEL( data-value)CONTAINERCNT( data-area)

Conditions: CHANNELERR

This command is threadsafe.

Description

QUERY CHANNEL counts the number of containers that are in a specified channel.

You must specify the CHANNEL option and identify the channel explicitly. You can use the QUERY CHANNEL command with any channel, including the transaction channel (DFHTRANSACTION), and channels that CICS® created. To find the name of a program's current channel, that is, the channel with which the program was invoked, use the EXEC CICS ASSIGN CHANNEL command.

Options

CHANNEL(data-value)
Specifies the 1–16 character name of the channel.
CONTAINERCNT(data-area)
Returns, as a fullword binary value, a count of the number of containers that are in the specified channel.

Conditions

122 CHANNELERR
RESP2 values:
2
The channel specified on the CHANNEL option could not be found.