system
September 9, 2009, 5:48pm
1
I Tried to create a Condition Filter in the universe.My Requirement is to
Limits date to last 365 days.I used the following formula at the where condition but it is not parsing.I am using DB2 database.
DATEDIFF(CURDATE(), Incdi.XIMDAT)<365.
Thanks in Advance for Helping me .
Pooja
ktm (BOB member since 2008-11-12)
system
September 9, 2009, 5:51pm
2
And the error message is?
Please, always provide as much information as possible. Don’t let us guess.
Marek Chladny (BOB member since 2003-11-27)
system
September 9, 2009, 6:00pm
3
Its the old current date / sysdate not referencing a table syndrome, did you try searching this hads been discussed Many, many, many times… .
Try running it in your report, it will work…
Mak 1 (BOB member since 2005-01-06)
system
September 9, 2009, 6:16pm
4
I had similar problem, even tough it dosent parse it would work in your report:-)
toblerone65 (BOB member since 2009-08-21)
system
September 9, 2009, 7:42pm
5
The Error are given Below:
Parse failed:Exception:DBD,[IBM] [iseries Access ODBC Driver][DB2 UDB] SQL 0204- DATEDIFF is LIBL type * not found
I save the condition and try to run at web I also it is not woking at the report Level As well.
Thank You
Pooja
ktm (BOB member since 2008-11-12)
system
September 9, 2009, 8:41pm
6
Well a simple search on Google showed me that datediff is not DB2 syntax, have a look at the Day function…
Mak 1 (BOB member since 2005-01-06)
system
September 10, 2009, 1:20am
7
Thanks for your reply.Can you please suggest me what should i use instead of DateDiff?
Thank You
Pooja
ktm (BOB member since 2008-11-12)
system
September 10, 2009, 1:49am
8
You might want to bookmark this page if you’re doing work with DB2 and don’t know the functions…
IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
Dave Rathbun (BOB member since 2002-06-06)
system
September 10, 2009, 6:59am
9
In addition, I told you…
Mak 1 (BOB member since 2005-01-06)