<?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: Assigning libname for SASondemand for profeesionals in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-libname-for-SASondemand-for-profeesionals/m-p/151540#M11863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; How does the program "not work"? Do you get an error message that says you do NOT have write access to LSBEX library? Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #ff0000;"&gt;ERROR: User does not have appropriate authorization level for library LSBEX.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; This is because you CANNOT write to the folder with the book data. It is read only. And, your program does not have a SET statement, so if your program had worked, you would have created an empty dataset -- but luckily the folder location for this data is READ ONLY, so you can't accidentally write over the data. Your LIBNAME statement is good. If you try something a bit different, you should be successful. Here's some code to try. My log from running the code in SAS OnDemand for Professionals is shown in the attached screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you want to write to a permanent location, then read the SAS OnDemand documentation about setting up your user location. The second screen shot shows an example of making a copy of LSBEX.DAILYPRICES in the user folder. The tilde symbol (~) in the LIBNAME statement is a shortcut reference for the longer path name /home/your_username/user folder. I like using the reference ~/user because it is shorter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;libname lsbex&amp;nbsp; '/tutorials/bookdata/learning_sas_by_example';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** will get ERROR message with this;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data lsbex.new;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** this will make a WORK copy of the DAILYPRICES data;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data work.dailyprices;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; set lsbex.dailyprices;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** this will show all the datasets in the library;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc contents data=lsbex._all_;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10609iEB495A5849D764A8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sodp_cody_book_libname.png" title="sodp_cody_book_libname.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10610i4283AE6E69C4F739/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sodp_write_user_folder.png" title="sodp_write_user_folder.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2014 01:09:20 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2014-06-23T01:09:20Z</dc:date>
    <item>
      <title>Assigning libname for SASondemand for profeesionals</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-libname-for-SASondemand-for-profeesionals/m-p/151539#M11862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;This code does not work.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New;"&gt;nocenter&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New;"&gt;nonumber&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New;"&gt; lsbex &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-family: Courier New;"&gt;'/tutorials/bookdata/learning_sas_by_example';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data lsbex.dailyprices;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New;"&gt;proc&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-family: Courier New;"&gt;print&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New;"&gt;=lsbex.dailyprices;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jun 2014 22:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-libname-for-SASondemand-for-profeesionals/m-p/151539#M11862</guid>
      <dc:creator>michael971</dc:creator>
      <dc:date>2014-06-22T22:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning libname for SASondemand for profeesionals</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-libname-for-SASondemand-for-profeesionals/m-p/151540#M11863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; How does the program "not work"? Do you get an error message that says you do NOT have write access to LSBEX library? Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #ff0000;"&gt;ERROR: User does not have appropriate authorization level for library LSBEX.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; This is because you CANNOT write to the folder with the book data. It is read only. And, your program does not have a SET statement, so if your program had worked, you would have created an empty dataset -- but luckily the folder location for this data is READ ONLY, so you can't accidentally write over the data. Your LIBNAME statement is good. If you try something a bit different, you should be successful. Here's some code to try. My log from running the code in SAS OnDemand for Professionals is shown in the attached screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you want to write to a permanent location, then read the SAS OnDemand documentation about setting up your user location. The second screen shot shows an example of making a copy of LSBEX.DAILYPRICES in the user folder. The tilde symbol (~) in the LIBNAME statement is a shortcut reference for the longer path name /home/your_username/user folder. I like using the reference ~/user because it is shorter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;libname lsbex&amp;nbsp; '/tutorials/bookdata/learning_sas_by_example';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** will get ERROR message with this;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data lsbex.new;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** this will make a WORK copy of the DAILYPRICES data;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data work.dailyprices;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; set lsbex.dailyprices;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** this will show all the datasets in the library;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc contents data=lsbex._all_;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10609iEB495A5849D764A8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sodp_cody_book_libname.png" title="sodp_cody_book_libname.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10610i4283AE6E69C4F739/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sodp_write_user_folder.png" title="sodp_write_user_folder.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 01:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-libname-for-SASondemand-for-profeesionals/m-p/151540#M11863</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-06-23T01:09:20Z</dc:date>
    </item>
  </channel>
</rss>

