Correction to Chapter 3
Page 99
In module 000 of the enhanced update program, the SQLCODE is displayed
if an error occurs during the processing of a transaction and the unit of
work must be rolled back. The intent was to display the SQLCODE from the
SQL statement that caused the error. But because the ROLLBACK statement
in module 200 is executed before the SQLCODE is displayed, the SQLCODE from
the ROLLBACK statement is displayed instead. The easiest way to correct
this problem is to move the statement that displays the SQLCODE in module
000 before the PERFORM statement for module 200.
|