<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Import column which is stored as XML format in database? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602678#M174508</link>
    <description>&lt;P&gt;I tried using&amp;nbsp;cast(B as VARCHAR), I got the error as&amp;nbsp;&lt;/P&gt;&lt;P&gt;Teradata prepare: Syntax error, expected something like '(' between the 'VARCHAR' keyword and ')'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried defining the length Varchar(10000) but still I got the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 06:12:25 GMT</pubDate>
    <dc:creator>Gangi</dc:creator>
    <dc:date>2019-11-08T06:12:25Z</dc:date>
    <item>
      <title>How to Import column which is stored as XML format in database?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602675#M174506</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;when I tried to import data from datsabse using PROC SQL it the throwing an error,&lt;/P&gt;&lt;P&gt;"ERROR: At least one of the columns in this DBMS table has a datatype that is not supported by this engine."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 04:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602675#M174506</guid>
      <dc:creator>Gangi</dc:creator>
      <dc:date>2019-11-08T04:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import column which is stored as XML format in database?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602677#M174507</link>
      <description>&lt;P&gt;You have to cast the type XML to VARCHAR in a pass-through query.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 05:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602677#M174507</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-11-08T05:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import column which is stored as XML format in database?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602678#M174508</link>
      <description>&lt;P&gt;I tried using&amp;nbsp;cast(B as VARCHAR), I got the error as&amp;nbsp;&lt;/P&gt;&lt;P&gt;Teradata prepare: Syntax error, expected something like '(' between the 'VARCHAR' keyword and ')'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried defining the length Varchar(10000) but still I got the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 06:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602678#M174508</guid>
      <dc:creator>Gangi</dc:creator>
      <dc:date>2019-11-08T06:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import column which is stored as XML format in database?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602679#M174509</link>
      <description>&lt;P&gt;Did you do this&lt;/P&gt;
&lt;PRE&gt;cast (b as varchar(10000))&lt;/PRE&gt;
&lt;P&gt;and if it did not work, what was the Teradata response?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 07:20:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602679#M174509</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-08T07:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import column which is stored as XML format in database?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602968#M174640</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; Syntax error, expected something like '(' between the 'VARCHAR' keyword and ')'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;means there is something missing here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cast(B as &lt;FONT color="#FF0000"&gt;VARCHAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;HERE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt; &lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which is, at the message reads&amp;nbsp; &lt;STRONG&gt;between the 'VARCHAR' keyword and ')'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and which is, at the message also reads&amp;nbsp; &lt;STRONG&gt;something like '('&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;more specifically something like (100).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; I also tried defining the length Varchar(10000) but still I got the error.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Surprising. Post the complete log please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 11:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Import-column-which-is-stored-as-XML-format-in-database/m-p/602968#M174640</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-11-09T11:00:00Z</dc:date>
    </item>
  </channel>
</rss>

