I have table able called ABC in database with column names as A,B,C,D,E. Out of these columns B column has data in XML format.
when I tried to import data from datsabse using PROC SQL it the throwing an error,
"ERROR: At least one of the columns in this DBMS table has a datatype that is not supported by this engine."
You have to cast the type XML to VARCHAR in a pass-through query.
I tried using cast(B as VARCHAR), I got the error as
Teradata prepare: Syntax error, expected something like '(' between the 'VARCHAR' keyword and ')'
I also tried defining the length Varchar(10000) but still I got the error.
Thank you,
Did you do this
cast (b as varchar(10000))
and if it did not work, what was the Teradata response?
> Syntax error, expected something like '(' between the 'VARCHAR' keyword and ')'
means there is something missing here:
cast(B as VARCHAR HERE )
which is, at the message reads between the 'VARCHAR' keyword and ')'
and which is, at the message also reads something like '('
more specifically something like (100).
> I also tried defining the length Varchar(10000) but still I got the error.
Surprising. Post the complete log please.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.