<?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: Default group of files created through EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Default-group-of-files-created-through-EG/m-p/253848#M17827</link>
    <description>&lt;P&gt;Hi Go,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can force the group of a file by setting the set-group-ID bit of the containing directory. If a directory’s set-group-ID bit is set, newly created subfiles inherit the same group as the directory. So in addition you should also set the group of that directory to the desired group as a one-time command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set the set-group-ID bit and change its group as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,monospace;"&gt;# chmod g+s mydir&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,monospace;"&gt;# chgrp yyy mydir&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Existing files in the directory will not be affected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Regards Jan.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2016 15:57:17 GMT</pubDate>
    <dc:creator>jklaverstijn</dc:creator>
    <dc:date>2016-03-02T15:57:17Z</dc:date>
    <item>
      <title>Default group of files created through EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Default-group-of-files-created-through-EG/m-p/253845#M17826</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I&amp;nbsp;create (touch) files in UNIX terminal, the default group is xxx and to change it yyy, i can use newgrp command and I will be fine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But When I create files(for example a test data set) through Enterprise Guide, the default group goes to xxx and I want it to be yyy, how can i achive this ? thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 15:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Default-group-of-files-created-through-EG/m-p/253845#M17826</guid>
      <dc:creator>Go</dc:creator>
      <dc:date>2016-03-02T15:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Default group of files created through EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Default-group-of-files-created-through-EG/m-p/253848#M17827</link>
      <description>&lt;P&gt;Hi Go,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can force the group of a file by setting the set-group-ID bit of the containing directory. If a directory’s set-group-ID bit is set, newly created subfiles inherit the same group as the directory. So in addition you should also set the group of that directory to the desired group as a one-time command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set the set-group-ID bit and change its group as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,monospace;"&gt;# chmod g+s mydir&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,monospace;"&gt;# chgrp yyy mydir&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Existing files in the directory will not be affected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Regards Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 15:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Default-group-of-files-created-through-EG/m-p/253848#M17827</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-03-02T15:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Default group of files created through EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Default-group-of-files-created-through-EG/m-p/253880#M17828</link>
      <description>&lt;P&gt;Jan's suggestion, above is a good one, and probably the best if you don't mind changing the default group for the entire directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If however you only want to change the default group for some files but not for all files, you can issue UNIX commands from your SAS program using %sysexec&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, here I'm issuing a df -k command which will put a listing of the space allocations on my UNIX server into a text file called df_-k.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/** Create a listing of the space allocations on UNIX server. **/
%sysexec %str(df -k &amp;gt; /home/barbourj/df_-k.txt);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using %sysexec, you could just as easily issue chmod commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Default-group-of-files-created-through-EG/m-p/253880#M17828</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2016-03-02T16:57:43Z</dc:date>
    </item>
  </channel>
</rss>

