hi,
Can anyone explain why the MAXCC = 0 even when any file operation fails and it is non-zero when the DB2 operation fails? Does this depend on the pogram or is it a general behavior of mainframe?
i have mentioned a sample flow of the program.
Eg:
open file
if status = '00' OR '10'
continue
else
go to 999-abend-para
for DB2 query:
exec sql
-----------
----------
end-exec
EVALUATE SQLCODE
WHEN '00'
continue
WHEN OTHER
go to 999-abend-para
END-EVALUATE
999-abend-para
CALL CEE3ABD using +3000,1.
STOP RUN.
in the above mentioned flow, when any error occurs either for file operation or for DB2 operation, i am calling the abend-aid module. But, only for DB2 error i could see MAXCC is set to non-zero value.
in JESMSGLG if i check the RC for the step calling this module shows '0' even though the file operation has failed.but, for DB2 error, i could c RC='12' or some value.
Could anyone explain why is it so?
Thanks