× 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.



Might want to look at Log4RPG
https://github.com/tools400/Log4rpg

*Charles*

On Thu, Jan 7, 2021 at 11:03 AM Richard Schoen <richard@xxxxxxxxxxxxxxxxx>
wrote:

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
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


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.