Is there a way to capture the specifics of the error using ON.ABORT? Thanks, Nick Cipollina -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stevenson, Charles Sent: Friday, July 22, 2005 5:02 PM To: [email protected] Subject: RE: [U2][UV]Error Handling
> Is there a way to override error handling in Universe to do > something other than display a message and halt program > execution? What I would like is to have Universe send some > sort of notification when an error occurs. Not exactly, but here are a few ideas: 1. Errors (fatal & not) are recorded in $UVHOME/errlog. It's size is limited but configurable by uvconfig's MAXERRLOGENT. I have a phantom that continually polls this text file and populates my own structured hashed file & generate reports emailed to me and others. 2. There is ON.ABORT paragraph available to you to handle fatal errors. I trap them and populate another file & send emails. 3. On case by case basis, WRITE & other basic statements likely to be implicated in errors allow for ON ERROR clauses. Search for ON ERROR in the documentation pdf. I have a utility purpose subroutine that I stick in places like these ON ERROR clauses. The subroutine allows a text argument to be sent from the calling program & it also captures SYSTEM(9001) call stack info, then writes all that to a file, which is monitored. So far I haven't implemented an email from the subroutine, but probably should. cds ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
