Starting with Visual COBOL version 2.2 Update 2, HotFix 9, Micro Focus ECI programs that use mfccl.jar raise an error exception, EXCIRespException, if exciResp1 and exciResp2 are not both equal to zero. To ensure your ECI program captures all errors, you must catch this exception in your code. Please add the following code snippet, which enables your program to compile and execute properly:
try { … } catch(ExciRespException e) { String rcMsg = e.getRcMsg(); }
If an error occurs, rcMsg captures the appropriate error message.