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
- Print the channel name the program uses and check it against the naming rules.
- Initialise the channel name field before use.
- 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