|
John wrote: >Could someone please point me to some reference material on how >to work with fields containing time stored as a numeric (len6, >dec 0.) Specifically, I need to calculate elapsed time between >twor or more time fields. Seems to me I need to create a Result >Field but am not certain of the correct formula to to the >calculations between time1 and time 2 to get Elapsed_Time. Check out <http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/QB3AGZ03/4.4.93> which describes how to use the SUBDUR opcode in RPG IV to determine the difference between two times. Refer to <http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/QB3AGZ03/2.3.5#HDRDTIME> for a general discussion on using the time datatype in RPGIV. (Yeah, I know, you probably want an answer relating to RPG III. But learning RPG IV is really a "no-brainer" and doing the time computations in RPG IV are a heck of a lot easier than figuring out some complex formulas.) Cheers! Hans Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.