<?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 HOW TO CREATE A USER DEFINED LIBRARY AND KEEP USING IT WITHOUT REFERENCING IT EACH TIME IN THE CODE in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CREATE-A-USER-DEFINED-LIBRARY-AND-KEEP-USING-IT-WITHOUT/m-p/551600#M9024</link>
    <description>&lt;P&gt;I am sorry for coming up with this most basic question. So far I have been working with Work library because of which I have not bothered about creating my own library. However, my recent codes take a long time to execute because of the volume of data, and each time I open SAS I need to run them all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is after creating my library by&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME ZZZ 'mydata/myfile/...';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;what should I do so that I don't need to write 'ZZZ' in my code over and over again. For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT DATA= ZZZ.YYY...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thus I will have reference ZZZ every time. I want to get rid of this referencing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much thanks. Regards.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2019 05:13:26 GMT</pubDate>
    <dc:creator>d6k5d3</dc:creator>
    <dc:date>2019-04-17T05:13:26Z</dc:date>
    <item>
      <title>HOW TO CREATE A USER DEFINED LIBRARY AND KEEP USING IT WITHOUT REFERENCING IT EACH TIME IN THE CODE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CREATE-A-USER-DEFINED-LIBRARY-AND-KEEP-USING-IT-WITHOUT/m-p/551600#M9024</link>
      <description>&lt;P&gt;I am sorry for coming up with this most basic question. So far I have been working with Work library because of which I have not bothered about creating my own library. However, my recent codes take a long time to execute because of the volume of data, and each time I open SAS I need to run them all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is after creating my library by&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME ZZZ 'mydata/myfile/...';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;what should I do so that I don't need to write 'ZZZ' in my code over and over again. For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT DATA= ZZZ.YYY...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thus I will have reference ZZZ every time. I want to get rid of this referencing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much thanks. Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 05:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CREATE-A-USER-DEFINED-LIBRARY-AND-KEEP-USING-IT-WITHOUT/m-p/551600#M9024</guid>
      <dc:creator>d6k5d3</dc:creator>
      <dc:date>2019-04-17T05:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO CREATE A USER DEFINED LIBRARY AND KEEP USING IT WITHOUT REFERENCING IT EACH TIME IN THE C</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CREATE-A-USER-DEFINED-LIBRARY-AND-KEEP-USING-IT-WITHOUT/m-p/551603#M9025</link>
      <description>&lt;P&gt;The only library you do not need to reference is WORK. Anytime you use a one-level dataset name, it will automatically be assumed to be in WORK.&lt;/P&gt;
&lt;P&gt;All other libraries have to be explicitly named.&lt;/P&gt;
&lt;P&gt;If you want library names to be dynamic, you can use a macro variable, so you need to change the name in only one place in your code.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 06:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CREATE-A-USER-DEFINED-LIBRARY-AND-KEEP-USING-IT-WITHOUT/m-p/551603#M9025</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-17T06:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO CREATE A USER DEFINED LIBRARY AND KEEP USING IT WITHOUT REFERENCING IT EACH TIME IN THE C</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CREATE-A-USER-DEFINED-LIBRARY-AND-KEEP-USING-IT-WITHOUT/m-p/551670#M9035</link>
      <description>&lt;P&gt;Your question and your example don't seem to fit together.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a user defined library and have it available every single time you launch SAS, put the LIBNAME statement in your AUTOEXEC file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;PROC&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;IMPORT&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; ZZZ&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;YYY&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is invalid syntax and does not fit with the title, because PROC IMPORT must point (with the DATAFILE= option, not the DATA= option which does not exist) to an actual file and not to a SAS data set, so a libname is not needed for this; you need an actual file name that DATAFILE= points to. You could use a macro variable here, said macro variable could be defined in your AUTOEXEC.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CREATE-A-USER-DEFINED-LIBRARY-AND-KEEP-USING-IT-WITHOUT/m-p/551670#M9035</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-17T12:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO CREATE A USER DEFINED LIBRARY AND KEEP USING IT WITHOUT REFERENCING IT EACH TIME IN THE C</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CREATE-A-USER-DEFINED-LIBRARY-AND-KEEP-USING-IT-WITHOUT/m-p/551700#M9037</link>
      <description>&lt;PRE&gt;options user= 'mydata/myfile/...';


/*Then no need ZZZ. */

PROC IMPORT DATA= YYY...&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CREATE-A-USER-DEFINED-LIBRARY-AND-KEEP-USING-IT-WITHOUT/m-p/551700#M9037</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-17T13:15:04Z</dc:date>
    </item>
  </channel>
</rss>

