Escape character in v8
Posted: Thu Jul 24, 2008 2:37 pm
Im passing an Sql query as a parameter to the job
e.g select name where state in ('NY','NJ')
The query works fine in Oracle but when I pass it as a parameter to the job, it fails. On going through the log I saw that the query was not getting coverted properly.
The log was as follows :
Oracle_Enterprise_0: The provided query statement did not prepare correctly;
please verify that your statement is correct;
statement: SELECT name where state in (NY,NJ).
The quotes were removed from the in clause,hence the failure.
I tried with an escape character
select name where state in (\'NY\',\'NJ\')
The above code works properly in 7.5, but fails in 8.0.2
can anyone suggest me how do I apply escape character in data stage version 8.0.2
Thanks
Mark
e.g select name where state in ('NY','NJ')
The query works fine in Oracle but when I pass it as a parameter to the job, it fails. On going through the log I saw that the query was not getting coverted properly.
The log was as follows :
Oracle_Enterprise_0: The provided query statement did not prepare correctly;
please verify that your statement is correct;
statement: SELECT name where state in (NY,NJ).
The quotes were removed from the in clause,hence the failure.
I tried with an escape character
select name where state in (\'NY\',\'NJ\')
The above code works properly in 7.5, but fails in 8.0.2
can anyone suggest me how do I apply escape character in data stage version 8.0.2
Thanks
Mark