Using an API that performs a LIST PACKAGE and it is failing with the below:
ENAPIMGR 20,032 THE RESPONSE STRUCTURE HEADER IS INVALID 01B0000005E10002D3E2E4E2
Release: 18.1 and 19.0
Regarding the exact symptom, this message will be printed:
ENAPIMGR 20,032 THE RESPONSE STRUCTURE HEADER IS INVALID 01B0000005E10002D3E2E4E2
The numbers will be constant, except the highlighted part, which can be different. I guess "01B0" will be the most common value (Move action with 8-char elm name), but it can be different. The rest will always be the same.
This is how the initialization is done currently:
Or the same in shortened form:
The workaround just needs to add one line:
This ONLY applies to COBOL programs. The problem does not exist for assembler programs where API$INIT macro is used.
The workaround works with COBOL 6.x and higher, which covers all supported versions of COBOL. It does not work with 5.x or older, but those are unsupported.