Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using keyword "TODAY" in where clause

Status
Not open for further replies.

jguoz

Programmer
Dec 30, 2005
6
US
Trying to use the keyword TODAY in the selection tab of InfmxCLI stage. When I use the statement : select * from <table> where load_date = today, directly on the database, I get the desired results. When I try this in datastage, I get zero rows returned.

I'm thinking that datastage doesn't recognize the keyword TODAY.

Any thoughts?

Jaime

I have Server version 7.5.1.A.
 
I'm answering my own question so the next person will have the answer. When I had the selection criteria of (load_date between today and today -6), this returned zero records. But when I changed the syntax to be (load_date between today -6 and today)...it works.

This answer was resolved by IBM tech support.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top