<?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: External output file permissions in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/549273#M8648</link>
    <description>&lt;P&gt;Thank you all for your help.&amp;nbsp; Consider this case closed. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Jackie O&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 14:06:12 GMT</pubDate>
    <dc:creator>JackieO</dc:creator>
    <dc:date>2019-04-08T14:06:12Z</dc:date>
    <item>
      <title>External output file permissions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548346#M8504</link>
      <description>&lt;P&gt;I need to create several external files and establish their permissions as u=rwx, g=rwx, and o=r-x.&amp;nbsp; I can accomplish this easily if an output file isn't created using "FILEVAR".&amp;nbsp; Can I not do this using "FILEVAR"?&amp;nbsp; Please see the attached code.&amp;nbsp; What is the proper way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jackie O.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548346#M8504</guid>
      <dc:creator>JackieO</dc:creator>
      <dc:date>2019-04-03T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: External output file permissions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548579#M8551</link>
      <description>&lt;P&gt;Here are some resources that you might find helpful&amp;nbsp;&lt;A href="http://support.sas.com/techsup/technote/ts581.pdf" target="_blank"&gt;http://support.sas.com/techsup/technote/ts581.pdf&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi27/p082-27.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi27/p082-27.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 17:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548579#M8551</guid>
      <dc:creator>SAS_Cares</dc:creator>
      <dc:date>2019-04-04T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: External output file permissions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548587#M8552</link>
      <description>Hello,&lt;BR /&gt;I hadn't seen the first reference, but had the second. Thank you for your help. Doing a "find" on both yields nothing concerning "PERMISSION".&lt;BR /&gt;Perhaps I was unclear concerning my problem. I just recently began using "FILEVAR". I can create the external files, but only with my profile settings&lt;BR /&gt;for file permissions. Those external files need different permissions for group. Too many to chmod. Hoped to modify the permissions while&lt;BR /&gt;the files are being generated. Someone else in my group will be using these files when running an editing application.&lt;BR /&gt;Jackie O&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Apr 2019 17:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548587#M8552</guid>
      <dc:creator>JackieO</dc:creator>
      <dc:date>2019-04-04T17:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: External output file permissions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548624#M8553</link>
      <description>&lt;P&gt;Depending on how the SAS session is started (shell command? using a Workspace server in SAS EG or SAS Studio?), you may be able to influence the default permissions by &lt;A href="http://support.sas.com/kb/38/040.html" target="_self"&gt;setting the umask -- see this note&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh, but I see your question is about FILEVAR -- I think the answer is No, it doesn't work that way with PERMISSION.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an explanation that I cribbed from another support question:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;When you use the FILEVAR= option, the file-specification is just a placeholder, not an actual filename or a fileref that has been previously assigned to a file. &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;When you do not use the FILEVAR= option you are using the actual filename or a fileref hence allowing to set the permissions using the permissions option (PERMISSION='permission-value').&amp;nbsp; The PERMISSION value isn't assigned "dynamically" as the active file changes out during multiple passes of the DATA step.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 04 Apr 2019 19:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548624#M8553</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-04-04T19:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: External output file permissions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548647#M8554</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation doesn't mention any such limitations on the new PERMISSION option.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=hostunx&amp;amp;docsetTarget=p0upngkius4n84n17wt1u5znj2de.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=hostunx&amp;amp;docsetTarget=p0upngkius4n84n17wt1u5znj2de.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 20:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548647#M8554</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-04-04T20:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: External output file permissions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548663#M8556</link>
      <description>&lt;P&gt;I understand&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;-- but just relaying information I saw in another internal support case.&amp;nbsp; Maybe it *should* work -- and you might be correct to expect it to -- but I don't want you to waste time trying to make it work if it won't.&amp;nbsp; If you think it's important, I suggest working with SAS Tech Support to pursue possibility of a change. There are workarounds perhaps not as elegant as FILEVAR with PERMISSIONS -- like macro or CALL EXECUTE to define all of the files with permissions ahead of the step.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 21:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548663#M8556</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-04-04T21:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: External output file permissions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548798#M8574</link>
      <description>&lt;P&gt;Chris and Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick responses.&amp;nbsp; My SAS application is executed within a korn-shell script.&amp;nbsp; Looks like I can control permissions using umask as you have suggested.&amp;nbsp; If this doesn't work for me, I will explore macros, but have minimal experience working with them.&amp;nbsp; Still would love to know why a single file created works perfectly with the PERMISSION option for the FILE statement, while multiple files using FILEVAR does not.&amp;nbsp; At least not for me. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again...thank you!&lt;/P&gt;&lt;P&gt;Jackie O.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548798#M8574</guid>
      <dc:creator>JackieO</dc:creator>
      <dc:date>2019-04-05T15:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: External output file permissions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548812#M8575</link>
      <description>&lt;P&gt;Note that since you are turning on the group write bit on the files you might will also want to make sure to turn it on for the folder.&lt;/P&gt;
&lt;P&gt;You might also want to set the group sticky bit on the folder when it is created. That way all files created in the folder will be in the same group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;mkdir -p myfolder
chmod g+s,g+w myfolder
cd myfolder
umask 002 
sas myprogram&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/548812#M8575</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-04-05T15:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: External output file permissions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/549273#M8648</link>
      <description>&lt;P&gt;Thank you all for your help.&amp;nbsp; Consider this case closed. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Jackie O&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 14:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/External-output-file-permissions/m-p/549273#M8648</guid>
      <dc:creator>JackieO</dc:creator>
      <dc:date>2019-04-08T14:06:12Z</dc:date>
    </item>
  </channel>
</rss>

