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



We are at V5R3.  Thanks I will take a look at this 'redbook'. It would have 
been nice if I could have had a class to get my feet wet before being pushed in 
the pool. 
Willie..

-----Original Message-----
From: DeLong, Eric [mailto:EDeLong@xxxxxxxxxxxxxxx]
Sent: Friday, January 28, 2005 12:58 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: help with comparing two dates


Willie,

Can you tell us what OS400 release you are coding for?  There are some date
math features that only work in newer releases.

In general, you might want to spend a little time with "the redbook".  
http://www.redbooks.ibm.com/redbooks/pdfs/sg245402.pdf

You load your date and time values into two timestamp variables, then subdur
for the difference in minutes.  From here, %Div(Minutes:60) to get hours and
%Rem(Minutes:60) to get the minutes.

Eric DeLong
Sally Beauty Company
MIS-Project Manager (BSG)
940-297-2863 or ext. 1863



-----Original Message-----
From: Willie J. Moore [mailto:WJMoore@xxxxxxxxxxxxxxx]
Sent: Friday, January 28, 2005 2:16 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: help with comparing two dates


I have to compare two sets of dates/times. One set is start date/time the
other is end date/time. The dates are in (YYYYMMDD) format and the times are
in (oo:oo:oo:) formats.  Each date and time has its on field in the record.
I want the difference to be in HH:MM.  Our shop still has (using) RPGIII
code. I would to see how this is done in RPG400/ILE. This way I can start
learning it.
Thanks for any and all help.  Examples would be appreciated.
William Moore


-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.