MainframeKit

CHANNELERR

DFHRESP(CHANNELERR) = 122CICS RESP CONDITION

The channel name given to the command is not valid.

MOST LIKELY

The channel name has characters that are not allowed.

FIRST CHECK

Print the channel name the program uses and check it against the naming rules.

TRY IT ▸

MainframeKit assistant

What it means

CHANNELERR is about channels and containers. On LINK, RESP2 1 means the CHANNEL name contains a character or combination of characters that is not allowed.

Check the name the program passes before the call.

Typical causes

  • The channel name has characters that are not allowed.
  • The channel name field is not set or holds leftover data.

How to fix it

  1. Print the channel name the program uses and check it against the naming rules.
  2. Initialise the channel name field before use.
  3. Code RESP (and RESP2) on the command and test the value with DFHRESP.

Example

Illustrative only; names and values are invented.

EXEC CICS LINK PROGRAM('PROG02') CHANNEL('CHAN01')
     RESP(WS-RESP) RESP2(WS-RESP2) END-EXEC