procestrans:
do transaction on error undo procestrans, retry procestrans
on stop undo procestrans, retry procestrans
on quit undo procestrans retry procestrans:
if retry then do:
/* put here code to manage the error */
leave procestrans.
end.
end.