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



Actually I found a 'flaw' in my logic that appears to be responsible for
my imaginary error.

C If Process_File = 1 Or
* Once/hr try to process files in PRO_ERROR that haven't expired
yet...
C (Process_File = 2 AND
C %Diff(Cur_Time:Last_Time:*Minutes) >

C 60)
C If Process_File = 2
C Eval Last_Time = Cur_Time
C Endif

The problem is that since I only want to execute 'process_file = 2' only
once per hour, after I do so, I update Last_Time with Cur_Time.

Then after 11:00pm, Last_Time becomes Cur_Time, and then after midnight,
when the calc is next performed, the result (%Diff) becomes a negative and
won't execute again until probably (if at all) around 11:00 pm the
following day... Duh

My error isn't with the %Diff result, but the fact that using T instead of
Z data types didn't allow the code to acknowledge the date change that
occurred after midnight and therefore the '> 60 minutes' condition rarely
occured.

I took Simon's advice and wrote a quickie test program that I could run in
debug and try various scenarios. That proved to be the point of
enlightenment.

Thanks everyone for their input.

Regards, Jerry

Gerald Kern - MIS Project Leader
Lotus Notes/Domino Administrator
IBM Certified RPG IV Developer
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623-4299
Phone 419-479-5535
gkern@xxxxxxxxxxxxxxxx


This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please inform the
sender by reply e-mail and destroy this and all copies of this message.

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.