<?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: User does not have appropiate authorization level for libary WC000001 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443485#M28647</link>
    <description>&lt;P&gt;Why the weird data set name?&amp;nbsp; Get rid of the quotes, get rid of the space between AVG and 1, and just:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create table AVG1 as ...........&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 20:10:37 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-03-07T20:10:37Z</dc:date>
    <item>
      <title>User does not have appropiate authorization level for libary WC000001</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443451#M28644</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new at SAS so I hope my description is accurrate. I'm using SAS Enterprise Guide 9.4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with databases available in a remote server, and I am trying to calculate an average on two variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create table "AVG1" as&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT *, AVG(RMEANIMT+LMEANIMT) AS AVG1&lt;/P&gt;&lt;P&gt;FROM WORK.QUERY_FOR_APPEND_TABLE;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QUIT;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the log:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql&lt;/P&gt;&lt;P&gt;CREATE TABLE "AVG 1" AS&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT *, AVG(RMEANIMT+LMEANIMT) AS AVG1&lt;/P&gt;&lt;P&gt;FROM WORK.QUERY_FOR_APPEND_TABLE;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The query requieres remerging summary statistics back with the original data&lt;/P&gt;&lt;P&gt;ERROR: User does not have appropriate authorization level for library WC000001.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I don't have any library with that name. My guess is that it comes from the WORK library but I'm not sure how to reference it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443451#M28644</guid>
      <dc:creator>MerAgSo</dc:creator>
      <dc:date>2018-03-07T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: User does not have appropiate authorization level for libary WC000001</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443461#M28645</link>
      <description>&lt;P&gt;You probably need to talk to your IT area or SAS administrator. Your code doesn't have any errors so that's fine, its some other issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can verify if the code below will also give you an error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
create table average1 as 
SELECT *, AVG(RMEANIMT+LMEANIMT) AS AVG1
FROM WORK.QUERY_FOR_APPEND_TABLE; 
QUIT; 
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Mar 2018 19:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443461#M28645</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-07T19:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: User does not have appropiate authorization level for libary WC000001</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443464#M28646</link>
      <description>&lt;P&gt;Update: Now I see, as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;pointed out, the quoted table name was the cause.&amp;nbsp; This told SAS to consider the table as a file name, not a member of a SAS library, and that's where the WCnnnnn libref came from.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The "&lt;SPAN&gt;WC000001" tells me that a preceding step used a SAS data set directly from the file system, rather than via a library that you explicitly defined.&amp;nbsp; &amp;nbsp;This technique causes SAS to assign a temporary libname behind the scenes, and the name looks like "WCnnnnnn". Instead of opening/adding a sas7bdat file directly in EG, you should first use a&amp;nbsp;&lt;STRONG&gt;LIBNAME&lt;/STRONG&gt; statement to define a library that maps to the folder.&amp;nbsp; That step can be in code or using the Assign Library wizard in EG.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then, when you run the next step in the flow, the library definition will already be in place.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443464#M28646</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-03-07T20:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: User does not have appropiate authorization level for libary WC000001</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443485#M28647</link>
      <description>&lt;P&gt;Why the weird data set name?&amp;nbsp; Get rid of the quotes, get rid of the space between AVG and 1, and just:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create table AVG1 as ...........&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443485#M28647</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-07T20:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: User does not have appropiate authorization level for libary WC000001</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443487#M28648</link>
      <description>Apparently that was the whole problem, I changed the code and it ran&lt;BR /&gt;perfectly. Thank you very much.&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443487#M28648</guid>
      <dc:creator>MerAgSo</dc:creator>
      <dc:date>2018-03-07T20:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: User does not have appropiate authorization level for libary WC000001</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443503#M28653</link>
      <description>&lt;P&gt;If you really want table names like that you can add an N to the end, this is known as a name literal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
create table "AVG1"n as 
SELECT *, AVG(weight) AS AVG1
FROM sashelp.class; 
QUIT; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't recommend doing that though, because then you have to type more (3 extra characters) per data set name and it makes it harder to use short cut references to data sets.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/User-does-not-have-appropiate-authorization-level-for-libary/m-p/443503#M28653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-07T20:53:04Z</dc:date>
    </item>
  </channel>
</rss>

