|
My bad you did say system date. just remove "somedate:*usa" from the BIF
%Date()
Eval date60 = %Int(%Char(%Date():*MDY0))
%Date() will return today's date. unless you specify a date.
Michael Schutte
Work 614-492-7419
email michael_schutte@xxxxxxxxxxxx
Michael_Schutte@b
obevans.com
Sent by: To
rpg400-l-bounces@ RPG programming on the AS400 /
midrange.com iSeries <rpg400-l@xxxxxxxxxxxx>
cc
04/14/2006 09:41 Subject
AM Re: converting system date to
integer
Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>
Eval date60 = %Int(%Char(%Date(somedate:*USA):*MDY0))
Michael Schutte
Work 614-492-7419
email michael_schutte@xxxxxxxxxxxx
"Douglas W.
Palme"
<dpalme@xxxxxxxxx To
om> "RPG Group" <rpg400-l@xxxxxxxxxxxx>
Sent by: cc
rpg400-l-bounces@
midrange.com Subject
converting system date to integer
04/14/2006 09:09
AM
Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>
I am in need of converting a system date to a six digit numeric....
So if the system date is say 04/14/06 I need to convert it to a 041406
numeric type...
I thought about doing it by using a move statement with *MDY in factor one
but I don't believe that will work as I would have to use 10 digits for the
date.
the problem is we have some display files that there is not enough room to
allow for a four digit year and I am not prepared at this time to re-write
the entire file.
Suggestions or hints?
If you bought it, it was hauled by a truck - somewhere, sometime.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
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 mailing list archive is Copyright 1997-2025 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.