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



No I didn't Bob and I apologize for that....do I need to write a hundred 
times on the black board "Always Read Bob Cozzi's ENTIRE MESSAGE!" :)


On Fri, 14 Apr 2006 09:48:33 -0500, Bob Cozzi wrote
> So Douglas, you didn't see the MOVE option as a choice in my 
> example?  :( It was there.  <tic>
> 
> -Bob Cozzi
> www.RPGxTools.com
> RPG xTools - Enjoy programming again.
> 
> -----Original Message-----
> From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-
> bounces@xxxxxxxxxxxx] On Behalf Of Douglas W. Palme Sent: Friday,
>  April 14, 2006 9:42 AM To: RPG programming on the AS400 / iSeries 
> Subject: Re: AW: AW: converting system date to integer
> 
> That did the trick.....thanks for the assistance.
> 
> I know that being at V5R1 it limits our capabilities but I don't 
> think that a 170 can handle V5R3, so we have held off upgrading 
> until we get a new machine.
> 
> On Fri, 14 Apr 2006 16:27:25 +0200, HauserSSS wrote
> > Hi,
> > 
> > if you are only on release V5R1M0, the easiest way is to use a move:
> > 
> > D  MyDate          S               D
> > D  MyNumDate       S              6P 0
> > 
> > C              Time             MyDate
> > C   *MDY       Move   MyDate    MyNumDate
> > 
> > With Release V5R1M0 it is not possible to convert a character value with
> > %INT or %Dec into a numeric value.
> > 
> > Mit freundlichen Gruessen / Best regards
> > 
> > Birgitta
> > 
> > "Shoot for the moon, even if you miss, you'll land among the stars."
> > (Les Brown)
> > 
> > -----Ursprungliche Nachricht-----
> > Von: rpg400-l-bounces@xxxxxxxxxxxx
> > [mailto:rpg400-l-bounces@xxxxxxxxxxxx]Im Auftrag von Douglas W. Palme
> > Gesendet: Freitag, 14. April 2006 16:10
> > An: RPG programming on the AS400 / iSeries
> > Betreff: Re: AW: converting system date to integer
> > 
> > Only issue is we are still at V5R1 on this particular box
> > 
> > On Fri, 14 Apr 2006 09:53:53 -0400, Michael_Schutte wrote
> > > DateMDY = %Dec(%Date(): *MDY);
> > >
> > > Cool, I didn't realize they allowed this in V5R3... thanks
> > >
> > > Michael Schutte
> > > Work 614-492-7419
> > > email  michael_schutte@xxxxxxxxxxxx
> > >
> > >              "HauserSSS"
> > >                    <Hauser@SSS-Softw
> > >                          are.de>
> > >                To              Sent by:                  "RPG
> > > programming on the AS400 /                  rpg400-l-bounces@
> > >  iSeries" <rpg400-l@xxxxxxxxxxxx>                 midrange.com
> > >                                         cc
> > >
> > > Subject              04/14/2006 09:50          AW: converting system
> > > date to                    AM                        integer
> > >
> > >              Please respond to
> > >                     RPG programming
> > >                           on the AS400 /
> > >                                     iSeries
> > >                                      <rpg400-l@midrang
> > >
> > >                   e.com>
> > >
> > > Hi,
> > >
> > > did you try the following:
> > >
> > > Release V5R3M0 and higher:
> > > DateMDY = %Dec(%Date(): *MDY);
> > >
> > > Release V5R2M0
> > > DateMDY = %Int(%Char(%Date(): *MDY0));
> > >
> > > Mit freundlichen Gruessen / Best regards
> > >
> > > Birgitta
> > >
> > > "Shoot for the moon, even if you miss, you'll land among the stars."
> > > (Les Brown)
> > >
> > > -----Ursprungliche Nachricht-----
> > > Von: rpg400-l-bounces@xxxxxxxxxxxx
> > > [mailto:rpg400-l-bounces@xxxxxxxxxxxx]Im Auftrag von Douglas W. Palme
> > > Gesendet: Freitag, 14. April 2006 15:10
> > > An: RPG Group
> > > Betreff: converting system date to integer
> > >
> > > 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.
> > >
> > > --
> > > 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.
> > 
> > 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.
> 
> 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.


If you bought it, it was hauled by a truck - somewhere, sometime.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.