What it means
CHANNELERR is RESP 122. On LINK, RESP2 1 means the name in the CHANNEL option contains an illegal character or combination of characters. The default action is to end the task abnormally.
A channel name is 1 to 16 characters from the set IBM lists, and leading and embedded blanks are not permitted.
Typical causes
- The channel name contains a character that is not in the allowed set.
- The channel name has a leading or embedded blank.
How to fix it
- Display the name the program passes and compare it with the allowed characters.
- To ship channels between regions, restrict names to A-Z a-z 0-9 & : = , ; < > . - and _, because other characters differ between EBCDIC code pages.
- Code RESP (and RESP2) on the LINK and test it.
Example
Illustrative only; names and values are invented.
EXEC CICS LINK PROGRAM('PROG02') CHANNEL('CHAN01')
RESP(WS-RESP) RESP2(WS-RESP2) END-EXEC