× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am very interested also.
Always nice to see how others handle those situations.


-----Oorspronkelijk bericht-----
Van: Richard Schoen [mailto:richard@xxxxxxxxxxxxxxxxx]
Verzonden: donderdag 7 januari 2021 19:04
Aan: rpg400-l@xxxxxxxxxxxxxxxxxx
Onderwerp: Re: Error handling method

I would be interested in seeing that.

Github perhaps ?

I have an interest in potentially extending it to write to IFS based log
files and it would prevent starting from scratch.

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
----------------------------------------------------------------------

message: 1
date: Thu, 7 Jan 2021 08:43:46 -0800
from: Alan Campin <alan0307d@xxxxxxxxx>
subject: Re: Error handling method

I just wrote a generic error handler that does all of that. You can log any
kind of string and it sends messages and builds a data base. I would need to
put it out for open source if you are interested.


On Thu, Jan 7, 2021 at 5:26 AM Kris Chantry <kris.chantry@xxxxxxxxx> wrote:



Hello,



I wonder if there is an easy way to know what the ERROR was, which
caused a program to END ABNORMALLY?



I want to create a generic ERROR HANDLING procedure by which I can
inform everybody in the IT deparment about a problem that occurred 1
or multiple times.

I would like to use the ON-EXIT function to accomplish this.

So when the ON-EXIT tells me that there was an error, I want to store
the Error Message Data in a DB File and send (periodicly) emails to
the IT Department about the errors that occurred and according the
severity of the error.



Can somebody tell me how I can retrieve the error message in the ON-EXIT?



Please find a simple example program about how I would like to
structure this.



Kind regards,

Kris



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.