Personally, I consider a 'branch to abnormal exit' much better than trying to unwind all the 'perform' levels, be it COBOL or Assembler.
I have seen programs where they attempted to unwind everything during an error and ended up processing code unintentionally. Tony Thigpen -----Original Message ----- From: Miklos Szigetvari Sent: 02/03/2011 12:16 PM > Hi > > Asking here for the best practices to rewrite "spaghetti" assembler > code to use structured programming macros > I think I red a number of SHARE presentations > > My concern is currently the error handling > Till now, if an error occurred, there was a JUMP/BRANCH to an error > block, with all the possible error messages , and after a JUMP/BRANCH > to the module RETURN. > Seems to me , instead of this, some DOEXIT or ASMLEAVE would be more > complicated > >