<?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 grant and deny access using SAS EG scripts in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480733#M31184</link>
    <description>&lt;P&gt;Hi, my system currently uses scripts to run our batch jobs for EG. However we occasionally encounter table locks due to users accessing the tables therefore resulting in batch job failure. During the re-run of batch job from previous point of failure, we will then use SAS Management console to personally deny user access to the respective tables. We are currently working on the codes to be keyed in SAS EG to grant and deny access for our users through the sas scripts but we are encountering error. Can someone please assist me on how to get it started?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keyed in this line of code in SAS EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sas-show-metadata-access -profile Admin /DemoBranch/DemoFolder;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error I got from this line of code is&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I keyed in proc sas-show-metadata-access -profile Admin /DemoBranch/DemoFolder;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Error I got from this line of code is&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;. AUDIT, CC, CLEANUP.&lt;/P&gt;&lt;P&gt;ERROR 76 -322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2018 08:33:35 GMT</pubDate>
    <dc:creator>roth1</dc:creator>
    <dc:date>2018-07-24T08:33:35Z</dc:date>
    <item>
      <title>How to grant and deny access using SAS EG scripts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480733#M31184</link>
      <description>&lt;P&gt;Hi, my system currently uses scripts to run our batch jobs for EG. However we occasionally encounter table locks due to users accessing the tables therefore resulting in batch job failure. During the re-run of batch job from previous point of failure, we will then use SAS Management console to personally deny user access to the respective tables. We are currently working on the codes to be keyed in SAS EG to grant and deny access for our users through the sas scripts but we are encountering error. Can someone please assist me on how to get it started?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keyed in this line of code in SAS EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sas-show-metadata-access -profile Admin /DemoBranch/DemoFolder;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error I got from this line of code is&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I keyed in proc sas-show-metadata-access -profile Admin /DemoBranch/DemoFolder;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Error I got from this line of code is&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;. AUDIT, CC, CLEANUP.&lt;/P&gt;&lt;P&gt;ERROR 76 -322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 08:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480733#M31184</guid>
      <dc:creator>roth1</dc:creator>
      <dc:date>2018-07-24T08:33:35Z</dc:date>
    </item>
    <item>
      <title>How to grant and deny access in SAS EG through batch jobs</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480732#M31189</link>
      <description>&lt;P&gt;Hi, my system currently uses scripts to run our batch jobs for EG. However we occasionally encounter table locks due to users accessing the tables therefore resulting in batch job failure. During the re-run of batch job from previous point of failure, we will then use SAS Management console to personally deny user access to the respective tables. We are currently working on the codes to be keyed in SAS EG to grant and deny access for our users through the sas scripts but we are encountering error. Can someone please assist me on how to get it started?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keyed in this line of code in SAS EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sas-show-metadata-access -profile Admin /DemoBranch/DemoFolder;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error I got from this line of code is&lt;/P&gt;&lt;P&gt;ERROR 180-322:&amp;nbsp;Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I keyed in proc&amp;nbsp;&lt;SPAN&gt;sas-show-metadata-access -profile Admin /DemoBranch/DemoFolder;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error I got from this line of code is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR 22-322: Syntax error, expecting one of the following: ;. AUDIT, CC, CLEANUP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR 76 -322: Syntax error, statement will be ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 08:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480732#M31189</guid>
      <dc:creator>roth1</dc:creator>
      <dc:date>2018-07-24T08:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant and deny access using SAS EG scripts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480736#M31185</link>
      <description>&lt;P&gt;Please post code and log your are executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Afaik there is no "proc sas-show-metadata-access" - the name violates sas naming rules.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 08:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480736#M31185</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-07-24T08:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant and deny access using SAS EG scripts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480738#M31186</link>
      <description>&lt;P&gt;You are trying to run a SAS batch tool as SAS code - it isn't going to work as it designed to be run from an operating system command line:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=n0bx2mb5l3iosan15odm1wfpo8bn.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=n0bx2mb5l3iosan15odm1wfpo8bn.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best way to avoid table locks is to run all of your batch jobs in a production environment where users have read-only access (set up using OS permissions) and this is best done using server-based scheduling.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 08:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480738#M31186</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-24T08:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant and deny access using SAS EG scripts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480753#M31187</link>
      <description>&lt;P&gt;You're thinking much too complicated here. If you have a UNIX server, it is extremely easy to get around locked SAS datasets by removing them first from the filesystem before you write them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, set up a time window where all services that could lock datasets (mainly the workspace servers) are stopped, and run your batch processing in that time window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Denying access to a user will not have ANY effect on a SAS session that was started before that. Open files will stay open until they are closed from within the session or the session is terminated.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 10:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480753#M31187</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-24T10:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant and deny access using SAS EG scripts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480754#M31188</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt; read-only access doesn't really help. Any user who leaves a Viewtable open will block that dataset against writing.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 10:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480754#M31188</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-24T10:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant and deny access using SAS EG scripts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480943#M31207</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;- agreed VIEWTABLE locks datasets regardless of OS permissions.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 20:44:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/480943#M31207</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-24T20:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant and deny access in SAS EG through batch jobs</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/481013#M31210</link>
      <description>&lt;P&gt;Why do you repeat your post?&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;There is no "proc sas-show-metadata-access" - getting an error when trying to execute a non-existing procedure is somehow expectable.&lt;/LI&gt;
&lt;LI&gt;"sas-show-metadata-access" is an executable and part of the SASPlattformObjectFramework, located on the server, depending on you setup, you don't even have it installed on the server hosting the Workspace Server. So maybe you won't be able to execute that executable even if xcmd is turned on.&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; already said: you won't be able to avoid locking of dataset by temporary revoking read-permission.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214163"&gt;@roth1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, my system currently uses scripts to run our batch jobs for EG. However we occasionally encounter table locks due to users accessing the tables therefore resulting in batch job failure. During the re-run of batch job from previous point of failure, we will then use SAS Management console to personally deny user access to the respective tables. We are currently working on the codes to be keyed in SAS EG to grant and deny access for our users through the sas scripts but we are encountering error. Can someone please assist me on how to get it started?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keyed in this line of code in SAS EG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sas-show-metadata-access -profile Admin /DemoBranch/DemoFolder;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error I got from this line of code is&lt;/P&gt;
&lt;P&gt;ERROR 180-322:&amp;nbsp;Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I keyed in proc&amp;nbsp;&lt;SPAN&gt;sas-show-metadata-access -profile Admin /DemoBranch/DemoFolder;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Error I got from this line of code is&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR 22-322: Syntax error, expecting one of the following: ;. AUDIT, CC, CLEANUP.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR 76 -322: Syntax error, statement will be ignored.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank You.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 04:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/481013#M31210</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-07-25T04:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant and deny access in SAS EG through batch jobs</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/481017#M31211</link>
      <description>&lt;P&gt;These were originally two separate threads before I merged them. Seems to be an erroneous double-post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS just happened to me. I hit the "post" button a second time before the "posting success" page started to load.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 05:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-grant-and-deny-access-using-SAS-EG-scripts/m-p/481017#M31211</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-25T05:16:59Z</dc:date>
    </item>
  </channel>
</rss>

