×
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.
If you don't want to use SQL, you could use the ILE CEE Date APIs. The only thing with these APIs are that they work with a lilian date, so you have to convert your "normal" date to lilian (which is not that difficult).
Here is an example:
http://www.rpgnextgen.com/downloads/ceedate01.rpgle
Prototypes:
http://www.rpgnextgen.com/downloads/ceeapi_h.rpgle
Mihael
-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im Auftrag von Adam West
Gesendet: Mittwoch, 12. November 2008 18:03
An: rpg400-l@xxxxxxxxxxxx
Betreff: date processing for end of week
HI I have a need to look at a file of back orders, and assume, for the sake of the report, that each back order will be shipped today and the customer will pay by the end of the terms date that they have, e.g. net 10 days, net 30 days etc.
This will then be printed as a report to the week ending day of Friday for that particular week in the future.
So if order A, is due in 20 days, it would be part of a bucket for that week. But you never know your starting point, it could be 10,20,25, 30,etc days into the future. How then can you know when Friday is in that particular week in an automated fashion?
TIA,
As an Amazon Associate we earn from qualifying purchases.