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



You would have to convert the dates to Julian (CVTDAT in a CL program) then do 
the subtract then convert back to a date or just have the difference in days.

HTH  

Steve

-----Oorspronkelijk bericht-----
Van: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]Namens Bob O.
Verzonden: maandag 2 oktober 2006 13:59
Aan: midrange-l@xxxxxxxxxxxx
Onderwerp: Convert to RPG400


   Does somebody know what the code for this should be if written in RPG400? 
   I need to convert this but can't figure out what I need to do.  Thanks.
    
    
    
    
        
   *********************************************************************
         *  Definition Specifications
        
   *********************************************************************
         *
        D ISODate1        S               D
        D ISODate2        S               D
         *
        
   *********************************************************************
         *  Calculation Specifications
        
   *********************************************************************
         *
        c     *Entry        Plist
        c                   Parm                    Date1             8 0
        c                   Parm                    Date2             8 0
        c                   Parm                    DAYS              5 0
         *
        c                   move      Date1         IsoDate1
        c                   move      Date2         IsoDate2
         *
        C     IsoDate1      SubDur    IsoDate2      Days:*D
         *
        c                   Eval      *Inlr = *On

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.