<?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: temporary and permanent data set in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791639#M253612</link>
    <description>&lt;P&gt;The WORK library is a temporary location for SAS data sets. It will be deleted when the SAS session ends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another library, like MYLIB,&amp;nbsp;&lt;STRONG&gt;might&lt;/STRONG&gt; be a permanent location (but really is anything permanent?), depending on how it was assigned. However, in general we would consider/classify a non-WORK library as "permanent."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;libname _all_ list ;&lt;/LI-CODE&gt;
&lt;P&gt;To see all library definitions in the SAS log. Any that indicate "ACCESS = TEMP" are temporary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="shell"&gt;NOTE: Libref=   WORK 
      Scope=    IOM ROOT COMP ENV
      Engine=   V9
      Access=   TEMP
      Physical Name= /sastmp/SAS_work27FA0000505C_miseiddvp1
      Filename= /sastmp/SAS_work27FA0000505C_miseiddvp1
      Access Permission= rwx------
&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 22 Jan 2022 14:36:50 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2022-01-22T14:36:50Z</dc:date>
    <item>
      <title>temporary and permanent data set in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791637#M253610</link>
      <description>&lt;P&gt;Hey everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have questions, please!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;Work.new is a temporary data set?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mylib.new is a permanent data set?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please I really need to know the answer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 22 Jan 2022 14:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791637#M253610</guid>
      <dc:creator>Malk020</dc:creator>
      <dc:date>2022-01-22T14:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: temporary and permanent data set in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791638#M253611</link>
      <description>Yes, that's correct.&lt;BR /&gt;The datasets in the WORK library are temporary datasets, and the datasets in the other libraries are permanent datasets.</description>
      <pubDate>Sat, 22 Jan 2022 14:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791638#M253611</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-01-22T14:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: temporary and permanent data set in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791639#M253612</link>
      <description>&lt;P&gt;The WORK library is a temporary location for SAS data sets. It will be deleted when the SAS session ends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another library, like MYLIB,&amp;nbsp;&lt;STRONG&gt;might&lt;/STRONG&gt; be a permanent location (but really is anything permanent?), depending on how it was assigned. However, in general we would consider/classify a non-WORK library as "permanent."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;libname _all_ list ;&lt;/LI-CODE&gt;
&lt;P&gt;To see all library definitions in the SAS log. Any that indicate "ACCESS = TEMP" are temporary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="shell"&gt;NOTE: Libref=   WORK 
      Scope=    IOM ROOT COMP ENV
      Engine=   V9
      Access=   TEMP
      Physical Name= /sastmp/SAS_work27FA0000505C_miseiddvp1
      Filename= /sastmp/SAS_work27FA0000505C_miseiddvp1
      Access Permission= rwx------
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 22 Jan 2022 14:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791639#M253612</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-01-22T14:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: temporary and permanent data set in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791667#M253620</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/386910"&gt;@Malk020&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Technically speaking, work datasets are not temporary, they are just automatically deleted when SAS ends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When SAS is started, a new directory is created on disk and asssigned with the libref work.&amp;nbsp;SAS automatically deletes the&amp;nbsp;directory and its content upon termination, because&amp;nbsp;the system option WORKTERM is set as default. Because of this default behaviour datasets written to this libref are called temporary, but they are&amp;nbsp;permanent disk files just like datasets written to other libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the system option NOWORKTERM is set with SAS invocation or during the session, the library is not deleted. This can in some cases be a useful feature to help with debugging. And if SAS for some reason terminates with an error, the library is not deleted either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In both cases the directory with content will exist until it is removed manually, and it is a good idea to check the SAS Temporary Files directory from time to time and delete old work directories.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 20:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791667#M253620</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2022-01-22T20:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: temporary and permanent data set in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791708#M253631</link>
      <description>Hey,&lt;BR /&gt;Thank you for your reply, It's convinced me now, so based on it I would say that Work.new is a permanent data set, and the answer in question below is 2, right?&lt;BR /&gt;&lt;BR /&gt;Which data sets are permanent? (You can choose more than one )&lt;BR /&gt;1.Temp.new 2.Work.new 3.Mylib.new&lt;BR /&gt;</description>
      <pubDate>Sun, 23 Jan 2022 14:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791708#M253631</guid>
      <dc:creator>Malk020</dc:creator>
      <dc:date>2022-01-23T14:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: temporary and permanent data set in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791713#M253636</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/386910"&gt;@Malk020&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hey,&lt;BR /&gt;Thank you for your reply, It's convinced me now, so based on it I would say that Work.new is a permanent data set, and the answer in question below is 2, right?&lt;BR /&gt;&lt;BR /&gt;Which data sets are permanent? (You can choose more than one )&lt;BR /&gt;1.Temp.new 2.Work.new 3.Mylib.new&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Is this from some real quiz/test that someone has given you?&amp;nbsp; &amp;nbsp;Are you allowed to write a response or only mark each of those datasets with a yes/no flag?&amp;nbsp;&amp;nbsp;Did they not provide any context?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The RIGHT answer depends on information you have not provided.&amp;nbsp; Where are the TEMP and MYLIB librefs pointing? Are they pointing to your SAS sessions WORK directory (or some subdirectory you might have created there)?&amp;nbsp; Are they pointing to some other that your system considers temporary and where the files are automatically deleted?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without more details the BEST answer is to just select the WORK dataset as the one that is "temporary" and the others are "permanent".&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 16:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/temporary-and-permanent-data-set-in-SAS/m-p/791713#M253636</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-23T16:39:12Z</dc:date>
    </item>
  </channel>
</rss>

