<?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 17,000 XML files into SAS datasets . in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812119#M320407</link>
    <description>You need option CHARMULTIPLIER= to extend your variable length.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/n0kvon2742e4c7n1qxt6truvio5y.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/n0kvon2742e4c7n1qxt6truvio5y.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you have XML Map file, that maybe could import one dataset.&lt;BR /&gt;&lt;BR /&gt;Search the usage of XML engine or XMLV2 engine at support.sas.com&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/p0rkqlpx0jxrgun0zidmv4ecr4c9.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/p0rkqlpx0jxrgun0zidmv4ecr4c9.htm&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/en/search.html?q=xmlv2" target="_blank"&gt;https://support.sas.com/en/search.html?q=xmlv2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You could find more example .</description>
    <pubDate>Mon, 09 May 2022 10:47:16 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-05-09T10:47:16Z</dc:date>
    <item>
      <title>How to import 17,000 XML files into SAS datasets .</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/811992#M320340</link>
      <description>&lt;P&gt;I have a requirement to import 17,000 xml files from client into single SAS dataset . I have tried VB script for converting XML to Excel so that i could write a macro in sas to convert these Excel files to SAS datasets, but not working.&amp;nbsp; Please provide your valuable suggestions .&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2022 12:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/811992#M320340</guid>
      <dc:creator>Prudhvi_007</dc:creator>
      <dc:date>2022-05-08T12:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 17,000 XML files into SAS datasets .</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812003#M320344</link>
      <description>&lt;P&gt;Start with code to read a single XML file. Do your files have identical structure?&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2022 16:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812003#M320344</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-08T16:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 17,000 XML files into SAS datasets .</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812005#M320345</link>
      <description>Yes , file structure is identical for all the files.</description>
      <pubDate>Sun, 08 May 2022 16:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812005#M320345</guid>
      <dc:creator>Prudhvi_007</dc:creator>
      <dc:date>2022-05-08T16:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 17,000 XML files into SAS datasets .</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812006#M320346</link>
      <description>&lt;P&gt;Do a Google search for "SAS read xml data". You will get lots of results. Once you have code to read a single file, post it, so we can make suggestions for automation.&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2022 16:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812006#M320346</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-08T16:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 17,000 XML files into SAS datasets .</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812066#M320371</link>
      <description>&lt;P&gt;Firstly ,pick up one XML to test and find which dataset you need to keep .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename x temp;
libname x xmlv2 'c:\temp\define.xml' xmlmap=x automap=replace ;
proc copy in=x out=work;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2022 04:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812066#M320371</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-09T04:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 17,000 XML files into SAS datasets .</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812098#M320395</link>
      <description>&lt;P&gt;Hi . Thank you for the code . I tried your code on one xml file . It worked . One xml file is split into 8 datasets . It threw the below error .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prudhvi_007_0-1652087860843.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71225i1D8901FD662A2BFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Prudhvi_007_0-1652087860843.png" alt="Prudhvi_007_0-1652087860843.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can we convert one xml to one dataset instead of 7-8 sub datasets. Once it can be done , we can automate the code for 1000 xmls.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 09:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812098#M320395</guid>
      <dc:creator>Prudhvi_007</dc:creator>
      <dc:date>2022-05-09T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 17,000 XML files into SAS datasets .</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812099#M320396</link>
      <description>Thank you for the sources . Its very helpful.</description>
      <pubDate>Mon, 09 May 2022 09:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812099#M320396</guid>
      <dc:creator>Prudhvi_007</dc:creator>
      <dc:date>2022-05-09T09:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 17,000 XML files into SAS datasets .</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812119#M320407</link>
      <description>You need option CHARMULTIPLIER= to extend your variable length.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/n0kvon2742e4c7n1qxt6truvio5y.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/n0kvon2742e4c7n1qxt6truvio5y.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you have XML Map file, that maybe could import one dataset.&lt;BR /&gt;&lt;BR /&gt;Search the usage of XML engine or XMLV2 engine at support.sas.com&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/p0rkqlpx0jxrgun0zidmv4ecr4c9.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/p0rkqlpx0jxrgun0zidmv4ecr4c9.htm&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/en/search.html?q=xmlv2" target="_blank"&gt;https://support.sas.com/en/search.html?q=xmlv2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You could find more example .</description>
      <pubDate>Mon, 09 May 2022 10:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-17-000-XML-files-into-SAS-datasets/m-p/812119#M320407</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-09T10:47:16Z</dc:date>
    </item>
  </channel>
</rss>

