<?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: How to assign permanent lib and use SET statement.. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544373#M150550</link>
    <description>&lt;P&gt;If you are on 9.x, then click the 'New Library' Button at the top ribbon to get the below window. Then choose the 'Enable at startup' box and fill in the rest accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28042i362AA0DD2F49F31D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2019 20:38:41 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-03-19T20:38:41Z</dc:date>
    <item>
      <title>How to assign permanent lib and use SET statement..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544364#M150548</link>
      <description>&lt;P&gt;May I ask how to assign a permanent lib to data? Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 20:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544364#M150548</guid>
      <dc:creator>zhangyu027</dc:creator>
      <dc:date>2019-03-19T20:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign permanent lib and use SET statement..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544367#M150549</link>
      <description>&lt;P&gt;Welcome to the SAS Communities &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What version of SAS do you use?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 20:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544367#M150549</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-03-19T20:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign permanent lib and use SET statement..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544373#M150550</link>
      <description>&lt;P&gt;If you are on 9.x, then click the 'New Library' Button at the top ribbon to get the below window. Then choose the 'Enable at startup' box and fill in the rest accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28042i362AA0DD2F49F31D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 20:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544373#M150550</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-03-19T20:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign permanent lib and use SET statement..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544374#M150551</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is an example of the LIBNAME statement and SET statement that is used with a DATA step:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="codeFocus"&gt;libname pdata 'your-data-library';&lt;/SPAN&gt;  
&lt;SPAN class="codeFocus"&gt;data ds1;&lt;/SPAN&gt; 
   set pdata;&lt;BR /&gt;   by ID;&lt;BR /&gt;run;

&lt;SPAN class="codeFocus"&gt;proc print data = ds1;&lt;/SPAN&gt; 
run;&lt;/PRE&gt;&lt;P&gt;Here, PDATA,DS1 and ID are used generically.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nasya&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 20:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544374#M150551</guid>
      <dc:creator>Nasya</dc:creator>
      <dc:date>2019-03-19T20:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign permanent lib and use SET statement..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544384#M150554</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In order to create and save a permanent SAS data file in a library you'll want to use the following syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname pdata 'your-data-library';&amp;nbsp; /*Path for where you want to store data set/where your data is located*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data pdata.ds1;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* New permanent SAS data file stored in pdata library. */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; set&amp;nbsp; &amp;nbsp;ds1;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* temporary SAS data file*/&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 21:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544384#M150554</guid>
      <dc:creator>SharonZS</dc:creator>
      <dc:date>2019-03-19T21:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign permanent lib and use SET statement..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544469#M150583</link>
      <description>&lt;P&gt;You define the library reference with a libname statement. In order for a library to be "permanent" (available for use everytime a new SAS session starts), you need to have it somewhere in the structures that could be called "part of the autoexec process". Depending on your SAS setup, this could be&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;a statement in one of the autoexec.sas files that are called when the SAS session starts. A BI Server has multiple such files with inheritance.&lt;/LI&gt;
&lt;LI&gt;a definition in SAS metadata (in a BI Server environment).&lt;/LI&gt;
&lt;LI&gt;a statement executed whenever you connect to a SAS server from Enterprise Guide.&lt;/LI&gt;
&lt;LI&gt;a statement executed whenever code is sent to the SAS server.&lt;/LI&gt;
&lt;LI&gt;a statement in an "Autoexec" process flow in a SAS Enterprise Guide project file.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;(this list is not complete by far)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 07:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544469#M150583</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-20T07:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign permanent lib and use SET statement..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544472#M150584</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/211652"&gt;@Nasya&lt;/a&gt;: two errors in your code:&lt;BR /&gt;"Set psdata" references the dataset psdata in the work library. &lt;BR /&gt;"data = ds1" also processes work.ds1.</description>
      <pubDate>Wed, 20 Mar 2019 07:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-permanent-lib-and-use-SET-statement/m-p/544472#M150584</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-03-20T07:54:58Z</dc:date>
    </item>
  </channel>
</rss>

