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



-----Message d'origine-----
[mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Tomasz Skorza


I have some program which calculate a cost of transport -
usually it's works perfectly, to simplify program write to
two files - general ledger and item ledger. In general ledger
amount is always corect, but in item ledger from time to time
amount is completely wrong - though the same amount in
general ledger is still correct. When I test it and debug, I
always get correct results. And when I talk with users - they
always sad "I enter correct values on the screen". But errors
as were still coming from time to time.
This is an interactive program.
So my question is - how to in simply way get two things:
1) how to save all screen's fields every time when user pres
enter or other function keys? the best
- in separately file with time stamp
2) how to save all variables from program in the
"write_line_to_item_ledger" moment? I can of course prepare
separately file but I would like to do it using one
separately command/program - without change program to much.

Hi,

Add a control that detects the error before you write to your ledger files. You can then block the user with an error message or record the contents of the display.
You can define DS's based on the display files that you populate when you write to your ledger files, and write out the contents of these DS's.

Of course, I'm assuming that this is RPG in which case I'm on the wrong list :-)

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.