<?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 &amp;quot;Insufficient memory&amp;quot; error when importing XML, but not using much memory! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/quot-Insufficient-memory-quot-error-when-importing-XML-but-not/m-p/493748#M129948</link>
    <description>&lt;P&gt;I am importing a mildly large ~3gb xml file into SAS 9.4 on Windows. &amp;nbsp;When I do, I run into "The SAS System stopped processing this step because of insufficient memory." &amp;nbsp;However, when I (1) run this on a large-memory server and (2) increase the &lt;STRONG&gt;memsize&lt;/STRONG&gt; and &lt;STRONG&gt;memmaxsz &lt;/STRONG&gt;options&amp;nbsp;to 500 gb each (verifying using proc options), it still gives the error. &amp;nbsp;I don't believe memory is&amp;nbsp;&lt;EM&gt;actually&lt;/EM&gt; the problem, because when I run "options fullstimer" I receive the results:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3:12.07&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; user cpu time &amp;nbsp; &amp;nbsp; &amp;nbsp; 2:38.18&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; system cpu time &amp;nbsp; &amp;nbsp; 31.65 seconds&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; memory&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1758.46k&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; OS Memory &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15864.00k&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Timestamp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 09/08/2018 08:37:18 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Step Count&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; Switch Count&amp;nbsp; 3&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which suggests that the process isn't actually using much memory at all! &amp;nbsp;Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full code I use is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options;
run;

options fullstimer;
libname in xml 'Y:\Flexibility\Devices.xml';
data Device;
set in.Device (keep = device1 devicedescription devicecategory deviceregion devicepurpose price);
run;

proc export data = Device outfile='Y:\Device\Devices.txt' dbms=tab replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Sep 2018 12:46:59 GMT</pubDate>
    <dc:creator>tsg</dc:creator>
    <dc:date>2018-09-08T12:46:59Z</dc:date>
    <item>
      <title>"Insufficient memory" error when importing XML, but not using much memory!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Insufficient-memory-quot-error-when-importing-XML-but-not/m-p/493748#M129948</link>
      <description>&lt;P&gt;I am importing a mildly large ~3gb xml file into SAS 9.4 on Windows. &amp;nbsp;When I do, I run into "The SAS System stopped processing this step because of insufficient memory." &amp;nbsp;However, when I (1) run this on a large-memory server and (2) increase the &lt;STRONG&gt;memsize&lt;/STRONG&gt; and &lt;STRONG&gt;memmaxsz &lt;/STRONG&gt;options&amp;nbsp;to 500 gb each (verifying using proc options), it still gives the error. &amp;nbsp;I don't believe memory is&amp;nbsp;&lt;EM&gt;actually&lt;/EM&gt; the problem, because when I run "options fullstimer" I receive the results:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3:12.07&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; user cpu time &amp;nbsp; &amp;nbsp; &amp;nbsp; 2:38.18&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; system cpu time &amp;nbsp; &amp;nbsp; 31.65 seconds&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; memory&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1758.46k&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; OS Memory &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15864.00k&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Timestamp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 09/08/2018 08:37:18 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Step Count&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; Switch Count&amp;nbsp; 3&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which suggests that the process isn't actually using much memory at all! &amp;nbsp;Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full code I use is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options;
run;

options fullstimer;
libname in xml 'Y:\Flexibility\Devices.xml';
data Device;
set in.Device (keep = device1 devicedescription devicecategory deviceregion devicepurpose price);
run;

proc export data = Device outfile='Y:\Device\Devices.txt' dbms=tab replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 12:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Insufficient-memory-quot-error-when-importing-XML-but-not/m-p/493748#M129948</guid>
      <dc:creator>tsg</dc:creator>
      <dc:date>2018-09-08T12:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: "Insufficient memory" error when importing XML, but not using much memory!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Insufficient-memory-quot-error-when-importing-XML-but-not/m-p/493777#M129971</link>
      <description>&lt;P&gt;Create an xml map that will tell SAS how to parse the XML file.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 16:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Insufficient-memory-quot-error-when-importing-XML-but-not/m-p/493777#M129971</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-08T16:16:26Z</dc:date>
    </item>
  </channel>
</rss>

