Bernd,
The first ON ERROR block is intended to perform error handling for the CALL
statement. If the error handler fails, then the CALL statement is bypassed and
execution proceeds by setting up a new error handler. If an error is
subsequently detected, the second ON ERROR block is invoked, at which time error
intercepts are disabled by the ON ERROR SYSTEM statement, and an failure in the
error handler results in the termination of the program.
This approach is both common and good design.
I would consider it to be unlikely that the error handler setup is the cause of
your problem.
I do not recommend the removal on the ON ERROR units. Rather, I recommend that
"ON ERROR BEGIN" be changed to "ON ERROR SNAP BEGIN".
J.B.
-----Original Message-----
From: PL1 (language) discussions [mailto:PL1-L@LISTSERV.DARTMOUTH.EDU] On
Behalf Of Bernd Oppolzer
Sent: Wednesday, June 20, 2012 4:42 PM
To: PL1-L@LISTSERV.DARTMOUTH.EDU
|