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



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

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.