<?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 Difference between a permanent and temporary dataset in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872700#M1135</link>
    <description>&lt;P&gt;How to read in permanent vs temporary dataset? Most of the data I have read into SAS has code as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname ILE2023 "/home/u60777348/ILE2023";&lt;/P&gt;&lt;P&gt;data BRFSSILE;&lt;BR /&gt;set ILE2023.brfss2018;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this is temporary because of the set statement, it is creating a temporary dataset from the "brfss2018" data. What would reading in the permanent dataset "brfss2018" code look like?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help-much appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 21:52:05 GMT</pubDate>
    <dc:creator>lanec23</dc:creator>
    <dc:date>2023-04-27T21:52:05Z</dc:date>
    <item>
      <title>Difference between a permanent and temporary dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872700#M1135</link>
      <description>&lt;P&gt;How to read in permanent vs temporary dataset? Most of the data I have read into SAS has code as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname ILE2023 "/home/u60777348/ILE2023";&lt;/P&gt;&lt;P&gt;data BRFSSILE;&lt;BR /&gt;set ILE2023.brfss2018;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this is temporary because of the set statement, it is creating a temporary dataset from the "brfss2018" data. What would reading in the permanent dataset "brfss2018" code look like?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help-much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 21:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872700#M1135</guid>
      <dc:creator>lanec23</dc:creator>
      <dc:date>2023-04-27T21:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a permanent and temporary dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872702#M1136</link>
      <description>&lt;P&gt;I am not sure what your question is.&amp;nbsp;The code you posted IS reading in a permanent dataset named&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;brfss2018&lt;/FONT&gt;.&amp;nbsp; It is reading the one that&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;lives in the directory named&amp;nbsp;&lt;FONT face="courier new,courier"&gt;/home/u60777348/ILE2023&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So the code you posted is reading the dataset the lives in the file named&amp;nbsp;&lt;FONT face="courier new,courier"&gt;/home/u60777348/ILE2023/brfss2018.sas7bdat&lt;/FONT&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 22:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872702#M1136</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-27T22:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a permanent and temporary dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872705#M1137</link>
      <description>&lt;P&gt;I see, thank you. In switching around my lines, the code that I was originally using, listed above, now isn't running. I don't know how this is even possible. I am getting the error message "&lt;SPAN&gt;The table "WORK.BRFSSILE" cannot be opened because it does not contain any columns." from the code&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libname ILE2023 "/home/u60777348/ILE2023";&lt;BR /&gt;data BRFSSILE;&lt;BR /&gt;set ILE2023.brfss2018;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;which ran perfectly fine before. Any idea what's happening? Nothing like this has ever happened to me before.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 22:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872705#M1137</guid>
      <dc:creator>lanec23</dc:creator>
      <dc:date>2023-04-27T22:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a permanent and temporary dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872706#M1138</link>
      <description>&lt;P&gt;If you got that error after running that data step then the permanent dataset also has no variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably accidentally ran a data step like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ILE2023.brfss2018;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which would make a new dataset with no variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably need to re-create the "permanent" dataset.&amp;nbsp; And you have learned that nothing is permanent.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 22:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872706#M1138</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-27T22:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a permanent and temporary dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872708#M1139</link>
      <description>&lt;P&gt;That was the step so that explains it. Do I need to redownload the data again?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 22:46:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872708#M1139</guid>
      <dc:creator>lanec23</dc:creator>
      <dc:date>2023-04-27T22:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a permanent and temporary dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872798#M1140</link>
      <description>Yes, you do. It's so easy to "lose" a dataset this way; you have my sympathies!</description>
      <pubDate>Fri, 28 Apr 2023 13:40:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/872798#M1140</guid>
      <dc:creator>quietann</dc:creator>
      <dc:date>2023-04-28T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a permanent and temporary dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/873030#M1141</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442236"&gt;@lanec23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;That was the step so that explains it. Do I need to redownload the data again?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, you do.&lt;/P&gt;
&lt;P&gt;One way to protect yourself against such situations where you overwrite by mistake a source table is to strictly separate source from target locations and to assign source locations read only. In your case below libname syntax would have protected you.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;libname ILE2023 "/home/u60777348/ILE2023" &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;access=readonly&lt;/FONT&gt;;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 02:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Difference-between-a-permanent-and-temporary-dataset/m-p/873030#M1141</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-04-30T02:03:43Z</dc:date>
    </item>
  </channel>
</rss>

