Whenever a CICS command is used with a NOHANDE
or RESP
option, the default CICS exception handling is disabled. The
correct approach then is to ensure that every possible exception is handled correctly directly in the code and to do this, you need to examine the
RESP
value or the EIBRESP
field value.
It is possible to compare the RESP
and EIBRESP
field values to hard-coded numbers or variables containing numeric values;
however, this makes the code difficult to read and maintain. It is recommended to use instead the DFHRESP
built-in translator function,
which enables the use of the equivalent symbolic values.
This rule raises an issue when the EIBRESP
field is compared directly to a variable or hard-coded numeric value that is not wrapped in
the DFHRESP
function.
This rule does not handle RESP
values for now.