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



%Day() is wrong...

You should use...

Eval Year = %SubDt(%Date():*Years)
Eval Month = %SubDt(%Date():*Months)
Eval Day = %SubDt(%Date():*Days)


Michael Schutte
Admin Professional
Bob Evans Farms, Inc.
3776 South High Street, Columbus, OH 43207
Phone: 614/492-7419 Fax: 614/409-2017
Visit us on the web! www.bobevans.com

(Embedded image moved to file: pic22648.gif)

What's the secret? Find out at your Bob Evans Restaurant on May 17!


rpg400-l-bounces@xxxxxxxxxxxx wrote on 06/05/2007 01:32:11 PM:


Randy,

You are right, the job date is set to UDATE = 060107.(checked it in
debug)
So how do i change this and make it accept the job date as the date when
the
job is run?



From: "Kesterson, Randy" <RPKesterson@xxxxxxxxxxxxxxxxxxx>
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, 5 Jun 2007 10:26:48 -0700

Unless I remember incorrectly, the Udate fields return the Job Date
information not the System date. Try debugging your program and check
the
value of UDATE before creating @CD1. Maybe you have something setting
the
Job Date to the 1st of the month.


______________________________________________________________________________________________

Randy Kesterson, Information Services
Market Transport Services - a UTi Worldwide Company| 110 N Marine Drive
|
Portland, OR 97217 | USA
rpkesterson@xxxxxxxxxxxxxxxxxxx | D +1 503.978.4353 | O +1 503.283.2405
x353 | F +1 503.978.4392


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jeff Young
Sent: Tuesday, June 05, 2007 10:20 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: UDAY (Reserved Word)

Derek,
It *should* return the current day using the Job Date.
I just tried it on V5R3 and it worked fine.


Jeff Young
Sr. Programmer Analyst
IBM -e(logo) server Certified Systems Exper - iSeries Technical
Solutions
V5R2
IBM Certified Specialist- e(logo) server i5Series Technical Solutions
Designer V5R3
IBM Certified Specialist- e(logo)server i5Series Technical Solutions
Implementer V5R3









----- Original Message ----
From: derek gonsalves <d_gons@xxxxxxxxxxx>
To: RPG400-L@xxxxxxxxxxxx
Sent: Tuesday, June 5, 2007 1:10:01 PM
Subject: UDAY (Reserved Word)


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




____________________________________________________________________________________

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's
updated
for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
--
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.


_________________________________________________________________
Make every IM count. Download Messenger and join the i’m Initiative now.
It’s free. http://im.live.com/messenger/im/home/?source=TAGHM_June07

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