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



Aw poop!

I should have seen that.

THANKS!!!!!

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Mildenberger
Sent: Wednesday, April 30, 2014 10:40 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: Set TimeStamp To Beginning of day

You need a : in front of all your RPG fields like

where date(Modify_Time) = :Selectdate

Scott

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of (WalzCraft) Jerry Forss
Sent: Wednesday, April 30, 2014 9:07 AM
To: 'RPG programming on the IBM i (AS/400 and iSeries)'
Subject: RE: Set TimeStamp To Beginning of day

Hi All,

Finally have a little time to get back to this. Sorry for the delay.

I have tried as many combinations as I can think of but keep getting the compile error SQL0206 <field name> not in specified tables.

The things I have tried are:
SelectDate (Date Data Type)
StartTime (Timestamp)
EndTime (Timestamp)

where date(Modify_Time) = Selectdate

Where Modify_Time >= StartTime And
Modify_Time <= EndTime

Where Modify_Time >= Timestamp(StartTime) And
Modify_Time <= Timestamp(EndTime)

The line below works as expected in a different pgm. This selects everything older than the number of days to the second.

Where Modify_Time < Current TimeStamp - :Days days;

It always gives me the same error.
I think the Modify_Time from the IFS is in a different type of format, isn't it?

What the heck am I doing wrong?

Thanks!!
--
This is the RPG programming on the IBM i (AS/400 and 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.

Subject to Change Notice:

WalzCraft reserves the right to improve designs, and to change specifications without notice.

Confidentiality Notice:

This message and any attachments may contain confidential and privileged information that is protected by law. The information contained herein is transmitted for the sole use of the intended recipient(s) and should "only" pertain to "WalzCraft" company matters. If you are not the intended recipient or designated agent of the recipient of such information, you are hereby notified that any use, dissemination, copying or retention of this email or the information contained herein is strictly prohibited and may subject you to penalties under federal and/or state law. If you received this email in error, please notify the sender immediately and permanently delete this email. Thank You;

WalzCraft PO Box 1748 La Crosse, WI. 54602-1748
www.walzcraft.com Phone... 608-781-6355

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.