<?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: a SAS loop that imports XML in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/a-SAS-loop-that-imports-XML/m-p/227485#M41002</link>
    <description>&lt;P&gt;You would be better off looking at the SAS XML Mapper software and the libname xml, rather than trying to write an XML parser yourself:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/rnd/base/xmlengine/" target="_blank"&gt;http://support.sas.com/rnd/base/xmlengine/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2015 13:38:17 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-09-28T13:38:17Z</dc:date>
    <item>
      <title>a SAS loop that imports XML</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-SAS-loop-that-imports-XML/m-p/227471#M40996</link>
      <description>&lt;P&gt;I never worked with XML data before, but are trying to make a loop that imports a folder full of XML files into SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took over the program below, but realises that I get a problem, when I have to import other variables from the file then the two already in use, since some dont have a fixed length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro loop;&lt;/P&gt;&lt;P&gt;%do n=1 %to &amp;amp;no;&lt;/P&gt;&lt;P&gt;data import;&lt;/P&gt;&lt;P&gt;infile "Z:\&amp;amp;&amp;amp;filnavn_&amp;amp;n" LRECL=9999 SCANOVER;&lt;BR /&gt;&lt;SPAN style="line-height: 20px;"&gt;input @'&amp;lt;Review&amp;gt;' +9 medlemnr $9. +20 artikel $10.@@;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc append base = lookup.review_01 data = import; run;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend loop;&lt;/P&gt;&lt;P&gt;%loop;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any sugestions?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 11:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-SAS-loop-that-imports-XML/m-p/227471#M40996</guid>
      <dc:creator>KasperMok</dc:creator>
      <dc:date>2015-09-28T11:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: a SAS loop that imports XML</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-SAS-loop-that-imports-XML/m-p/227485#M41002</link>
      <description>&lt;P&gt;You would be better off looking at the SAS XML Mapper software and the libname xml, rather than trying to write an XML parser yourself:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/rnd/base/xmlengine/" target="_blank"&gt;http://support.sas.com/rnd/base/xmlengine/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 13:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-SAS-loop-that-imports-XML/m-p/227485#M41002</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-09-28T13:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: a SAS loop that imports XML</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-SAS-loop-that-imports-XML/m-p/228601#M41303</link>
      <description>&lt;P&gt;Probably, but I dont think I have access to that solution, otherwise I would.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 11:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-SAS-loop-that-imports-XML/m-p/228601#M41303</guid>
      <dc:creator>KasperMok</dc:creator>
      <dc:date>2015-10-06T11:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: a SAS loop that imports XML</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-SAS-loop-that-imports-XML/m-p/228603#M41304</link>
      <description>&lt;P&gt;Its free, get it here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/downloads/package.htm?pid=713" target="_blank"&gt;http://support.sas.com/downloads/package.htm?pid=713&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 11:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-SAS-loop-that-imports-XML/m-p/228603#M41304</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-10-06T11:53:13Z</dc:date>
    </item>
  </channel>
</rss>

