Date filter in DB2 Connector Stage
Posted: Sun Mar 11, 2012 8:59 pm
Hi,
We are using 8.1 version of datastage. I have parallel job in which i am using db2 connector stage to connect to DB2 Database which is the source. Iam trying to load the data into a file. so there are no other stages except the db2 connector stage as source and the sequential file stage as target.
My requirement is to extract the data from one table which has the date field greater than or equal to 2012-01-31. in the where condition iam not to compare it. I tried to cast the date field but still its throwing the error.
error message when trying to use simple equal to statement.
"The data types of the operands for the operation "" are not compatible."
Is there any particular format that I need to use here.
Thanks in advance.
We are using 8.1 version of datastage. I have parallel job in which i am using db2 connector stage to connect to DB2 Database which is the source. Iam trying to load the data into a file. so there are no other stages except the db2 connector stage as source and the sequential file stage as target.
My requirement is to extract the data from one table which has the date field greater than or equal to 2012-01-31. in the where condition iam not to compare it. I tried to cast the date field but still its throwing the error.
error message when trying to use simple equal to statement.
"The data types of the operands for the operation "" are not compatible."
Is there any particular format that I need to use here.
Thanks in advance.