<?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: XML import to SAS data set from SQL database in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/XML-import-to-SAS-data-set-from-SQL-database/m-p/48585#M5362</link>
    <description>Thanks Chris - I really appreciate your reply.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The XML Map and XML libname engine is the second part of the project. I almost have this covered, the link you provided is a great help and confirms I am on the right track.&lt;BR /&gt;
&lt;BR /&gt;
The major issue I have is the XML data is being stored into a SQL database which I access through SAS via an ODBC Connection with the XML being quite complex + more than 1024bytes + multiple XML with different mappings. &lt;BR /&gt;
&lt;BR /&gt;
My temporary solution so far is to use the SQL pass through to call a stored procedure (with SAS macro to pass through variables needed).&lt;BR /&gt;
&lt;BR /&gt;
The stored procedure then uses BCP to save the XML files on my network.&lt;BR /&gt;
&lt;BR /&gt;
Then it moves on the to the second stage that you have pointed out.&lt;BR /&gt;
&lt;BR /&gt;
I am still in the testing stage and will post the solution when i am happy with the results.</description>
    <pubDate>Wed, 05 Jan 2011 00:14:13 GMT</pubDate>
    <dc:creator>Ce_Wo</dc:creator>
    <dc:date>2011-01-05T00:14:13Z</dc:date>
    <item>
      <title>XML import to SAS data set from SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/XML-import-to-SAS-data-set-from-SQL-database/m-p/48583#M5360</link>
      <description>Hi Everyone,&lt;BR /&gt;
&lt;BR /&gt;
I have been searching the net with no luck and thought i would try here.&lt;BR /&gt;
&lt;BR /&gt;
We use some SOA services and as a result customer information is stored to an XML file in a SQL database a customer level.&lt;BR /&gt;
&lt;BR /&gt;
i have had no joy in finding how to import multiple records from an SQL DB.&lt;BR /&gt;
&lt;BR /&gt;
Has any one had any exprience doing this i.e pulling in multiple XML files to a single sas dataset?&lt;BR /&gt;
&lt;BR /&gt;
Any assistance would be greatly appreciated.</description>
      <pubDate>Mon, 13 Dec 2010 06:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/XML-import-to-SAS-data-set-from-SQL-database/m-p/48583#M5360</guid>
      <dc:creator>Ce_Wo</dc:creator>
      <dc:date>2010-12-13T06:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: XML import to SAS data set from SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/XML-import-to-SAS-data-set-from-SQL-database/m-p/48584#M5361</link>
      <description>You can use the XML library engine in SAS to read XML as data.  Use SAS XML Mapper to create a map file (schema rules) for how to interpret the XML you're reading.&lt;BR /&gt;
&lt;BR /&gt;
You'll have to do this for each XML source you're working with, and then use DATA step or SQL to merge the multiple result tables together.&lt;BR /&gt;
&lt;BR /&gt;
Here's an example of using the XML library engine:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://blogs.sas.com/sasdummy/index.php?/archives/55-Mining-the-VP-debate-results-according-to-Twitter-with-SAS.html" target="_blank"&gt;http://blogs.sas.com/sasdummy/index.php?/archives/55-Mining-the-VP-debate-results-according-to-Twitter-with-SAS.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Tue, 04 Jan 2011 23:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/XML-import-to-SAS-data-set-from-SQL-database/m-p/48584#M5361</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2011-01-04T23:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: XML import to SAS data set from SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/XML-import-to-SAS-data-set-from-SQL-database/m-p/48585#M5362</link>
      <description>Thanks Chris - I really appreciate your reply.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The XML Map and XML libname engine is the second part of the project. I almost have this covered, the link you provided is a great help and confirms I am on the right track.&lt;BR /&gt;
&lt;BR /&gt;
The major issue I have is the XML data is being stored into a SQL database which I access through SAS via an ODBC Connection with the XML being quite complex + more than 1024bytes + multiple XML with different mappings. &lt;BR /&gt;
&lt;BR /&gt;
My temporary solution so far is to use the SQL pass through to call a stored procedure (with SAS macro to pass through variables needed).&lt;BR /&gt;
&lt;BR /&gt;
The stored procedure then uses BCP to save the XML files on my network.&lt;BR /&gt;
&lt;BR /&gt;
Then it moves on the to the second stage that you have pointed out.&lt;BR /&gt;
&lt;BR /&gt;
I am still in the testing stage and will post the solution when i am happy with the results.</description>
      <pubDate>Wed, 05 Jan 2011 00:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/XML-import-to-SAS-data-set-from-SQL-database/m-p/48585#M5362</guid>
      <dc:creator>Ce_Wo</dc:creator>
      <dc:date>2011-01-05T00:14:13Z</dc:date>
    </item>
  </channel>
</rss>

