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


  • Subject: RE: Date Math
  • From: "Mark A. Manske" <mmanske@xxxxxxxxxxxxxxxxxx>
  • Date: Thu, 31 May 2001 16:30:47 -0500
  • Importance: Normal

better suited for rpg-l list, but anyhow;

yes, and no, how is your statement coded on the RF, are you looking for *D
or *M
I usually look for the diff in days, it sounds like you are looking for the
difference
in months, which the calc would be correct, but the logic may not fit the
need of the
program.  I would need more information to determine which case, the manuals
have a
pretty fair explanation of how the subdur gets its results (IE: if you
subtract one month
from 3/31, obviously 2/31 is not valid so it adjusts back to a valid date)

code snippets and business logic requirements would help, and more talent
for ILE/RPG is
listening on the rpg-l list.

HTH

Mark A. Manske
Minter-Weisman Co.
Sr. Project Lead



-----Original Message-----
From: owner-midrange-l@midrange.com
[mailto:owner-midrange-l@midrange.com]On Behalf Of
Bruce.Odum@cbs.fiserv.com
Sent: Thursday, May 31, 2001 3:10 PM
To: MIDRANGE-L@midrange.com
Subject: Date Math


Question when subtracting two dates using subdur the resulting month will
always round down.  Is there any function that will allow you to see the
remaining days to determine if you halfway thru the month so you can round
the month up?

+---
| 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
+---

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