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



Yes there are many other much easier ways - don't drown in the replies that
could show up.

specs following assuming your system date is USA

D todayasUSA       s         10D  datfmt(*USA)

C                 move      *date      todayasUSA


hth

Mark



-----Original Message-----
From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On
Behalf Of THarteau@felkerbrothers.com
Sent: Thursday, January 10, 2002 3:16 PM
To: RPG400-L@midrange.com
Subject: RPG IV Date Question


Hi,
     This may sound like a silly question, but how do you get today's date
into a date field? I can do almost anything in RPG 400 or 3, but I'm still
learning RPG 4. In the past I have moved UDATE to a 6.0 field, added that
and 20000000 to an 8 digit field, then moved that to the date field. There
has got to be an more elegant way to do this, isn't there? Thanks!

<===================================================>

Terri Harteau
Felker Brothers Corp
****************
"There's no point in being grown up if you can't be childish sometimes."
- Dr. Who
****************





_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
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 ...

Replies:

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.