<?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: Loading SAS dataset to memory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Loading-SAS-dataset-to-memory/m-p/399971#M96906</link>
    <description>&lt;P&gt;As a pure test of reading the dataset from memory, run a DATA _NULL_ from disk and again from the same dataset via sasfile:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set work.ventas;
run;


sasfile work.ventas load;
data _null_;
  set work.ventas;
run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and compare the timings of the data _null_ steps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 30 Sep 2017 05:14:03 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2017-09-30T05:14:03Z</dc:date>
    <item>
      <title>Loading SAS dataset to memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-SAS-dataset-to-memory/m-p/399948#M96899</link>
      <description>&lt;P&gt;Hi I am using the sas option to load SAS tables in memory:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sasfile work.ventas load;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My dataset has 10 million rows is 2Gb and my RAM is 8Gb, but once loaded in memory I haven’t improve the performance of my proc s and data steps comparing with when the dataset is in disk.&lt;/P&gt;
&lt;P&gt;I don’t know if this option (sasfile ... load) &amp;nbsp;is oriented to improve some types of steps or data management. My steps are proc freq, proc measn and typical data steps to calculate fields&lt;/P&gt;
&lt;P&gt;Also perhaps I need a LASR server to work efficiently in memory with SAS. Can anybody help me?&lt;/P&gt;
&lt;P&gt;Any advice will be greatly apreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 23:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-SAS-dataset-to-memory/m-p/399948#M96899</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2017-09-29T23:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loading SAS dataset to memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-SAS-dataset-to-memory/m-p/399949#M96900</link>
      <description>&lt;P&gt;Have you tried increasing the value of the Bufno system option?&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#p148jwukxcnmmin0z662qex78l75.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#p148jwukxcnmmin0z662qex78l75.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 23:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-SAS-dataset-to-memory/m-p/399949#M96900</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-29T23:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Loading SAS dataset to memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-SAS-dataset-to-memory/m-p/399954#M96901</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52605"&gt;@juanvg1972&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Proc Means will likely need to sort the data which is done multithreaded but using temporary intermediary data sets on disc (UTILLOC). Having your source table in memory will at best speed up read from source into this process - but depending on the inner workings of Proc Means this read operation isn't the "bottleneck" and though reading from memory won't improve performance at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given above: If and when having data in memory improves performance depends on the processing details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are options like BUFNO which influence performance for read/write operations on disk and it can be worth to investigate if the default values are set optimal for your&amp;nbsp;environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here a paper which might be useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings09/333-2009.pdf&amp;nbsp;" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/333-2009.pdf&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2017 00:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-SAS-dataset-to-memory/m-p/399954#M96901</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-30T00:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Loading SAS dataset to memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-SAS-dataset-to-memory/m-p/399971#M96906</link>
      <description>&lt;P&gt;As a pure test of reading the dataset from memory, run a DATA _NULL_ from disk and again from the same dataset via sasfile:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set work.ventas;
run;


sasfile work.ventas load;
data _null_;
  set work.ventas;
run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and compare the timings of the data _null_ steps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2017 05:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-SAS-dataset-to-memory/m-p/399971#M96906</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-09-30T05:14:03Z</dc:date>
    </item>
  </channel>
</rss>

