× 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: UYEAR
  • From: Rob Berendt <rob@xxxxxxxxx>
  • Date: Wed, 9 Sep 1998 10:25:56 -0500

You can retrieve the current year using the ILE RPG operation:

¦        D LOGONDATE       S               D                                    
                   ¦
¦        
C*0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq....     
          ¦
¦                                                                               
                   ¦
¦         * Move the job date to LOGONDATE.  By default, LOGONDATE has an *ISO  
                   ¦
¦         * date format, which contains a 4-digit year.  *DATE also contains a  
                   ¦
¦         * 4-digit year, but in a different format, *USA.                      
                   ¦
¦                                                                               
                   ¦
¦        C     *USA          MOVE      *DATE         LOGONDATE                  
                   ¦
¦                                                                               
                   ¦
¦         *                                                                     
                   ¦
¦                                                                               
                   ¦
¦        C                   EXTRCT    LOGONDATE:*Y  LOGYEAR           4 0      
                   ¦




bmis06@MARYWOOD1.MARYWOOD.EDU on 09/09/98 10:13:57 AM
Please respond to MIDRANGE-L@midrange.com@Internet
To:     MIDRANGE-L@midrange.com@Internet
cc:      
Subject:        UYEAR

Does anyone know if UYEAR is going to 4/0?  Or will there be a *YEAR?  We're 
trying to finish up 2k & some old stuff is calculating 4/0 current calendar 
year & fiscal year from UYEAR & plugging century (If UYEAR *GE 50, movel 19 
year... else movel 20)  It works & I'd just as soon cross these programs off 
the "To Do" list...

Wendy Brenzel   
MARYWOOD UNIVERSITY
MIS Department
Senior Programmer/Analyst
bmis06@ac.marywood.edu
HTTP://WWW.MARYWOOD.EDU
Phone (717) 348-6221  Fax:  (717) 961-4736

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


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.