• Subject: Re: ILE Question
  • From: "Mauricio Della-Quercia" <mauriciodq@xxxxxxxxxxx>
  • Date: Tue, 16 Nov 1999 15:27:26 EST



>
>I am trying to arrive at years and months on a subdur of date of employment 
>to current date.  I can do *y or *m, but how can I get a breakdown of both 
>years and months.
>Also, it only seems to work if I use a 2 digit field for the months, and 
>for employment, I would need greater than 2 digits.
>
>Any help would be appreciated.
>
>Jim Waymire

Jim;
     Try this:  (@Today and @EmpDateIso are Date variables)
                                                                             
             clear                  @Mon              6 0
                   clear                  @Years            6 0
     @Today        subdur    @EmpDateIso  @Years:*Years
     @Today        subdur    @EmpDateIso  @Mon:*Months
     @Mon          div       12           @Mon
                   MVR                    @Mon


Regards
___________________________________
Mauricio Della-Quercia
Sr. Programmer Analyst
LegendWare Systems (AS/400 Consulting)
Toronto - Canada

MDellaQuercia@csi.com
Direct: (419)  919-4455
Fax:    (905)  426-5371
__________________________________

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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
+---

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].