<?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 DATA step and memory requirements in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31386#M7474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why?&amp;nbsp; If you want to do everything in RAM try using PROC IML.&lt;/P&gt;&lt;P&gt;Once you have a dataset you can use the SASFILE command to load it into RAM, but I cannot think of anyway to do it while creating the file.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2012 22:37:28 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-01-17T22:37:28Z</dc:date>
    <item>
      <title>DATA step and memory requirements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31382#M7470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding the memory usage of the DATA step. In a sample program like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;﻿﻿DATA weight;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input ID $ Week1 Week16;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeightLoss=Week1-Week16;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalines;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2477 195 163&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2431 220 198&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2456 173 155&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2412 135 116&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where SAS stores the dataset "weight" &lt;EM&gt;&lt;STRONG&gt;while &lt;/STRONG&gt;&lt;/EM&gt;this step is running? Does it store it in RAM or in a temporary file in the filesystem? What if much more data is being read in this step?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 21:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31382#M7470</guid>
      <dc:creator>ChrisT</dc:creator>
      <dc:date>2012-01-17T21:26:27Z</dc:date>
    </item>
    <item>
      <title>DATA step and memory requirements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31383#M7471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the short answer would be both, but mostly in a temporary file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 21:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31383#M7471</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-17T21:35:24Z</dc:date>
    </item>
    <item>
      <title>DATA step and memory requirements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31384#M7472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks art297. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to prevent SAS from doing that and instead instruct it to just keep the dataset in RAM? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way we avoid the I/O involved in writing temporary data out to the disk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 21:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31384#M7472</guid>
      <dc:creator>ChrisT</dc:creator>
      <dc:date>2012-01-17T21:39:32Z</dc:date>
    </item>
    <item>
      <title>DATA step and memory requirements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31385#M7473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really.&amp;nbsp; The data is stored in the WORK directory.&amp;nbsp; WORK is part of a file system in whatever OS you are using.&amp;nbsp; You might be able to store it in RAM if you created a virtual disk by using some of your RAM for that.&amp;nbsp; You could also create the data set as a VIEW; however, it would then do the I/O processing each time you went to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, the advantage of SAS is that it can work with arbitrarily large data.&amp;nbsp; The flip side is that it is an I/O hog sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 22:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31385#M7473</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-01-17T22:10:19Z</dc:date>
    </item>
    <item>
      <title>DATA step and memory requirements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31386#M7474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why?&amp;nbsp; If you want to do everything in RAM try using PROC IML.&lt;/P&gt;&lt;P&gt;Once you have a dataset you can use the SASFILE command to load it into RAM, but I cannot think of anyway to do it while creating the file.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 22:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DATA-step-and-memory-requirements/m-p/31386#M7474</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-01-17T22:37:28Z</dc:date>
    </item>
  </channel>
</rss>

