What it means
PGMIDERR is RESP 27. On LINK, RESP2 1 means the program has no installed definition and autoinstall was off or declined it, 2 means the program is disabled, and 3 means it was not loaded.
RESP2 21 to 24 cover autoinstall control program failures, 25 means the dynamic routing program rejected the request, and 26 and 27 apply to a failed or timed-out LINK to a Liberty JVM server application. The default action is to end the task abnormally.
Typical causes
- No installed program definition, and autoinstall is off or declined it (RESP2 1).
- The program is disabled (RESP2 2).
- The program load failed, typically because the load module was not found, or an earlier load had failed (RESP2 3).
- The autoinstall control program failed or returned invalid data (RESP2 21 to 24).
- The dynamic routing program rejected the link request (RESP2 25).
How to fix it
- Capture RESP2 and match it to the cause.
- For RESP2 3, put the module in the DFHRPL concatenation and issue SET PROGRAM NEWCOPY to reset the load status.
- For RESP2 26, read message DFHSJ1207 for why the Liberty application could not be invoked.
- Code RESP (and RESP2) on the command and test it so the task does not end abnormally.
Example
Illustrative only; names and values are invented.
EXEC CICS LINK PROGRAM('PROG02') COMMAREA(WS-AREA)
RESP(WS-RESP) RESP2(WS-RESP2) END-EXEC
IF WS-RESP = DFHRESP(PGMIDERR) ...