<?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 grant access to a table built in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524782#M142727</link>
    <description>&lt;P&gt;That relates to the SAS Federation Server which can be used to apply permissions to third-party relational databases only, not to SAS data.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jan 2019 02:45:24 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-01-05T02:45:24Z</dc:date>
    <item>
      <title>How to grant access to a table built in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524662#M142693</link>
      <description>&lt;P&gt;Hi I have the following table called Cohmon stored in a Library called JANUS (shown below).&lt;/P&gt;&lt;P&gt;How do I grant Access to all&amp;nbsp;for the COHMON table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Library was created as so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname JANUS '/sasdata/mids_output02/rjs/';&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GRANT ALL PRIVILEGES ON SCHEMA "JANUS" TO USERS;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&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-inline" image-alt="directory.PNG" style="width: 418px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25991i911F4C4A24D2E1A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="directory.PNG" alt="directory.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 20:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524662#M142693</guid>
      <dc:creator>Tater_Salad</dc:creator>
      <dc:date>2019-01-04T20:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant access to a table built in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524711#M142706</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have that dataset stored in Unix/Linux directory. You might need to set directory level permissions&amp;nbsp;here (using Putty or similar ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check this link to learn about the permissions &lt;A href="http://linuxcommand.org/lc3_lts0090.php&amp;nbsp;" target="_blank"&gt;http://linuxcommand.org/lc3_lts0090.php&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 21:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524711#M142706</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2019-01-04T21:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant access to a table built in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524719#M142709</link>
      <description>&lt;P&gt;You appear to be assuming that permissions on SAS tables work the same as in relational databases. They don't as SAS is not a relational database. There are two ways to control table permissions. One is through folder/directory permissions at the OS level, as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt; has described. The other way is through SAS metadata, although this only applies if you define your library in SAS metadata via SAS Management Console, not with a LIBNAME statement.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 21:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524719#M142709</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-01-04T21:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant access to a table built in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524753#M142716</link>
      <description>&lt;P&gt;That makes total sense however I pulled this up on a SAS Document page on Granting privileges:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV class="xis-topicContent"&gt;&lt;DIV class="xis-paragraph"&gt;&lt;P&gt;&lt;STRONG&gt;GRANT and DENY Statements&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Enables you to give privileges to a specific user or all users to perform actions on objects. When submitting a grant, revoke, or deny DDL, surround all identifiers in quotation marks, including table and column names.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;CREATE&amp;nbsp;DSN and ADMINISTER privileges cannot be granted or denied for the PUBLIC and USERS groups.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;GRANT | DENY { {&lt;EM&gt;"objectpriv&lt;/EM&gt;" |&lt;EM&gt;"containerpriv"&lt;/EM&gt; |&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"serverpriv"&lt;/EM&gt; [,...] } |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL [ PRIVILEGES ] }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [ ON { SCHEMA &lt;EM&gt;"schemaname"&lt;/EM&gt; | CATALOG &lt;EM&gt;"catalogname"&lt;/EM&gt; |&lt;/P&gt;&lt;P&gt;&amp;nbsp;[DATA] SERVICE &lt;EM&gt;"servicename"&lt;/EM&gt; | DSN &lt;EM&gt;"dsnname"&lt;/EM&gt; | SERVER } ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; TO { &lt;EM&gt;"authid"&lt;/EM&gt; | PUBLIC | USERS } [, ...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ AS ADMINISTRATOR ]&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;&lt;P&gt;I think my issue with this statement was, I was unable to figure out what they meant by SCHEMA, CATALOG, SERVICE, and DSN and how to map it to the structure I showed you in my first frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="xis-code"&gt;[ ON { SCHEMA &lt;SPAN class="xis-userSuppliedValue"&gt;"schemaname"&lt;/SPAN&gt; | CATALOG &lt;SPAN class="xis-userSuppliedValue"&gt;"catalogname"&lt;/SPAN&gt; |
 [DATA] SERVICE &lt;SPAN class="xis-userSuppliedValue"&gt;"servicename"&lt;/SPAN&gt; | DSN &lt;SPAN class="xis-userSuppliedValue"&gt;"dsnname"&lt;/SPAN&gt; | SERVER } ]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So you know if this GRANT Statement applies to my issue at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the link to the page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/fedsrvmgrag/65976/HTML/default/viewer.htm#n00l5zxf3olrthn1017cju0x0890.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/fedsrvmgrag/65976/HTML/default/viewer.htm#n00l5zxf3olrthn1017cju0x0890.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Jan 2019 22:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524753#M142716</guid>
      <dc:creator>Tater_Salad</dc:creator>
      <dc:date>2019-01-04T22:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant access to a table built in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524782#M142727</link>
      <description>&lt;P&gt;That relates to the SAS Federation Server which can be used to apply permissions to third-party relational databases only, not to SAS data.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 02:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524782#M142727</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-01-05T02:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant access to a table built in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524783#M142728</link>
      <description>So your data is on a server and you're trying to add this to a registered library? And you have the appropriate privileges to do so?</description>
      <pubDate>Sat, 05 Jan 2019 02:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/524783#M142728</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-05T02:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant access to a table built in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/525083#M142854</link>
      <description>&lt;P&gt;Yes&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 15:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/525083#M142854</guid>
      <dc:creator>Tater_Salad</dc:creator>
      <dc:date>2019-01-07T15:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant access to a table built in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/525477#M142980</link>
      <description>&lt;P&gt;Here's an update:&lt;/P&gt;&lt;P&gt;Turns out it looks like the person requesting this info is wanting to GRANT Access on a Neteeza object.&lt;/P&gt;&lt;P&gt;So it would be something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql;

create table RSYNC.target as
select * from WORK.SALES_TBL where 1 = 0;

insert into RSYNC.target 
select * from WORK.sales_tbl_tst2
;

GRANT INSERT, SELECT, DELETE ON RSYNC.target TO PUBLIC;


quit;&lt;/PRE&gt;&lt;P&gt;The trouble is when I run SAS with this GRant statement I get the following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: The GRANT statement is not implemented in PROC SQL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now this message is in green so it's not coming off as an error. But from the context of the message I'm not sure if GRANT privileges have actually been granted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked for Neteeza DBA table that'll tell me what privileges an object has and but, unlike Oracle which has DBA Tables and views for,..., you name it,..., the DBA tables in Netezza are somewhat limited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know if this is the way to go or if there's a more accurate way to set the native database privileges in SAS for Netezza?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'm on the right track but I need to be sure.&lt;/P&gt;&lt;P class="__web-inspector-hide-shortcut__"&gt;Does anyow if this is the way to&amp;nbsp;&lt;/P&gt;&lt;P class="__web-inspector-hide-shortcut__"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 16:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-grant-access-to-a-table-built-in-SAS/m-p/525477#M142980</guid>
      <dc:creator>Tater_Salad</dc:creator>
      <dc:date>2019-01-08T16:37:18Z</dc:date>
    </item>
  </channel>
</rss>

