|
From: Booth Martin <booth@xxxxxxxxxxxx>
Reply-To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Subject: Re: UDAY (Reserved Word)
Date: Tue, 05 Jun 2007 12:17:23 -0500
UDATE is the date the job itself started, and today many jobs run for a
very long time.
As a fix, consider this solution:
Eval @CY1 = %year()
Eval @CM1 = %month()
Eval @CD1 = %day()
derek gonsalves wrote:
>
> Hi all,
>
> What value does UDay return?? Isn't it supposed to return the current
> Day?
> I am facing a problem over here
> UYear returns 07- which is perfect
> UMonth returns 06 - which again is perfect
> But Uday always returns the value 01 - ??? (Tried running it yesterday
> - still the same result)
> Why is it so?? Any suggestions??
>
>
> $Calc Begsr
>
> Eval @CY1 = UYear
> Eval @CM1 = UMonth
> Eval @CD1 = UDay
>
> Endsr
>
> Thanks in advance
>
> Derek
>
> _________________________________________________________________
> Don?t miss your chance to WIN $10,000 and other great prizes from
> Microsoft Office Live
> http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.472 / Virus Database: 269.8.9/832 - Release Date: 6/4/2007 6:43 PM
>
--
---------------------------------
Booth Martin
http://www.Martinvt.com
---------------------------------
--
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-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.