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



On 8-Jul-09, at 11:04 AM, rpg400-l-request@xxxxxxxxxxxx wrote:

We would like to 'trap' the error, reset the DS to *INZ status and continue
with blank data. Tried to monitor the exfmt, but no luck.

Any hint on how to monitor the display error in a generalized way ???

There is a "real" solution - and then there are assorted hacks. I suspect that the real solution is going to require less code!

You need to extend the data you store to add some form of "level check". The current level would be stored in the DB (or a data area or ...) and whenever you retrieve stored record you would compare its level to the current one. If it is not current then Inz. You then must ensure that you update the master level number when a change is made.

You don't say what release you are on - but if you are on V5R4 or later you could try using a DS result field on the EXFMT and populate the display fields using an EVAL-CORR which you place in a MONITOR group. If you are on an earlier release then you will have to use a monitor group with a series of hand-coded evals (one for each numeric field) to see if any blow up.

As I said - the "correct" answer is not only better - but probably a lot less code!



Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.