<?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: file permission - how to make sure everyone can save the output to the same dataset in the libra in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601535#M35018</link>
    <description>&lt;P&gt;Two questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Are you saying that there is one user for whom it works, but if any other user tries to run it the program fails with that error message? If not, please describe the scenario in more detail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Is it absolutely certain that only one person at a time is trying to run the program? Are you sure that no one else is trying to change GOT.WEEKLY_DATA in any way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2019 23:24:29 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2019-11-04T23:24:29Z</dc:date>
    <item>
      <title>file permission - how to make sure everyone can save the output to the same dataset in the library</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601528#M35015</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have a project runs on a weekly basis and the final result needs be saved as a dataset in the library GOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a different user is running the project, the error message will come up as below:&lt;/P&gt;&lt;P&gt;ERROR: User does not have appropriate authorization level for file &lt;FONT face="Courier New" size="3"&gt;GOT.WEEKLY_data&lt;/FONT&gt;.DATA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; GOT.WEEKLY_Data;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.WEEKLY_Data;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Ideally, no matter who is running the project, the output can be saved to the same dataset in the library (GOT.WEEKLY_Data).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Can any one help me to sort the user issue? &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 00:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601528#M35015</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-11-05T00:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601531#M35016</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;further to my question, I have searched a solution and tested but failed :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/25/198.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/25/198.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro chmod(libname,dataset,permis=777);&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc sql;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* get the absolute path of the libname */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select path into: extpath from dictionary.members&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="%UPCASE(&amp;amp;LIBNAME)";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* find out if there are any datasets in the library */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select count(path) into: cnt from dictionary.members&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="%UPCASE(&amp;amp;LIBNAME)";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* if there are datasets...then issue the below command to change the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; permissions of the dataset called in this macro&amp;nbsp; to 777 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %if &amp;amp;cnt &amp;gt; 0 %then %do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename chmod pipe "chmod &amp;amp;PERMIS %trim(&amp;amp;extpath)/&amp;amp;dataset..sas7bdat";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file chmod;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* assign a libref to test the macro */&lt;BR /&gt;libname GOT '/*******/******/****';&lt;/P&gt;&lt;P&gt;/* test the macro on the '&lt;FONT face="Courier New"&gt;WEEKLY_Data&lt;/FONT&gt;' dataset in the 'GOT' library */&lt;BR /&gt;%chmod(GOT,&lt;FONT face="Courier New"&gt;WEEKLY_Data&lt;/FONT&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 23:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601531#M35016</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-11-04T23:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601533#M35017</link>
      <description>&lt;P&gt;(1) Is SAS actually running on Unix?&lt;/P&gt;
&lt;P&gt;(2) You need to change the permissions on the directory where the .sas7bdat file lives. When you run:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x.y;
  set x.y;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SAS will make a NEW file in the directory where X points.&amp;nbsp; Then if the step completes it will delete y.sas7bdat and rename the file it made to y.sas7bdat.&amp;nbsp; So you need write access to the directory.&amp;nbsp; Write access to the file is probably not important.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 23:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601533#M35017</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-04T23:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601535#M35018</link>
      <description>&lt;P&gt;Two questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Are you saying that there is one user for whom it works, but if any other user tries to run it the program fails with that error message? If not, please describe the scenario in more detail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Is it absolutely certain that only one person at a time is trying to run the program? Are you sure that no one else is trying to change GOT.WEEKLY_DATA in any way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 23:24:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601535#M35018</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2019-11-04T23:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601538#M35019</link>
      <description>&lt;P&gt;Hi TomKari,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, only 1 person from the team will be running it on a weekly basis. Currently problem is if the original file is created by one of member, other member from the team can only access the file but not update the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe it is to do with read/write access to the file, but don't have enough knowledge to resolve it myself. Tom may have&amp;nbsp;provided a solution but I don't quite get it yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sue&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 23:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601538#M35019</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-11-04T23:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601539#M35020</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) SAS EG is running from server.&lt;/P&gt;&lt;P&gt;2) I don't really understand the terminology "X points", therefore I don't know how to getting&amp;nbsp;there as to your suggestion?&lt;/P&gt;&lt;P&gt;I can create new datasets in the library &amp;nbsp;&lt;SPAN&gt;GOT, does that mean I do have the write access to the directory?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Sue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 23:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601539#M35020</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-11-04T23:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601542#M35021</link>
      <description>By default SAS is creating the file with permissions only for the creator. Any time I've encountered this, I've had to manually change it using CHMOD which you need x command to do. &lt;BR /&gt;&lt;BR /&gt;Verify you have x command enabled using:&lt;BR /&gt;&lt;BR /&gt;proc options option =xcmd;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;There may be a way to change this via administrator settings but I'm not aware of it and it's definitely annoying as hell when working in a team environment.</description>
      <pubDate>Tue, 05 Nov 2019 00:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601542#M35021</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-05T00:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601544#M35022</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Totally agreed what you said.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have run below code and confirmed&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; visibility: visible; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;x command enabled- what next?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; visibility: visible; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;proc options option =xcmd;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; visibility: visible; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; visibility: visible; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;The X Command is valid in this SAS session.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 00:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601544#M35022</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-11-05T00:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601545#M35023</link>
      <description>&lt;P&gt;after I run the macro,&amp;nbsp; log provided below info:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pipe command="chmod 777 /sas_user_*****/***_WEEKLY_data"&lt;/P&gt;&lt;P&gt;Message(s) received from the pipe command:&lt;BR /&gt;chmod: cannot access `/&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;sas_user_*****/***_WEEKLY_data&lt;/SPAN&gt;': No such file or directory&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 00:15:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601545#M35023</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-11-05T00:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601562#M35025</link>
      <description>You'll need to find the unix path to the files you need - may need to ask IT or when you assign the libname, right click the folder and get the path to ensure it's correct. &lt;BR /&gt;&lt;BR /&gt;If the whole folder is locked away from you that may part of the issue in the first place. &lt;BR /&gt;</description>
      <pubDate>Tue, 05 Nov 2019 03:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601562#M35025</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-05T03:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601574#M35026</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293494"&gt;@Suzy_Cat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's very often desirable to set the default in a way so that all members of a security group get full access to files independent on who has created them. In Unix/Linux that can be done via a UMASK.&lt;/P&gt;
&lt;P&gt;It requires a change to the configuration. Best talk to the SAS admin for your site.&amp;nbsp;&lt;A href="http://support.sas.com/kb/38/040.html" target="_blank"&gt;http://support.sas.com/kb/38/040.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 04:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601574#M35026</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-11-05T04:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601585#M35027</link>
      <description>&lt;P&gt;If you want to change the permissions of a dataset file, keep in mind that such files have all-lowercase filenames and end with .sas7bdat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you should not fix your issue after the fact. Issue this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x "umask 002";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before you create your dataset, and all will be OK.&lt;/P&gt;
&lt;P&gt;See this short example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sasuser.test1;
set sashelp.class;
run;

x 'umask 002';

data sasuser.test2;
set sashelp.class;
run;

%let path=%sysfunc(pathname(sasuser));

filename oscmd pipe "ls -l &amp;amp;path./test*";

data _null_;
infile oscmd;
input;
put _infile_;
run;

x "chmod 664 &amp;amp;path./test1.sas7bdat";

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log (redacted for user and group names, and the home path):&lt;/P&gt;
&lt;PRE&gt;37         data sasuser.test1;
38         set sashelp.class;
39         run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set SASUSER.TEST1 has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
      

40         
41         x 'umask 002'
41       !              ;
42         
43         data sasuser.test2;
44         set sashelp.class;
45         run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
2                                                          Das SAS System                            08:21 Tuesday, November 5, 2019

NOTE: The data set SASUSER.TEST2 has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      

46         
47         %let path=%sysfunc(pathname(sasuser));
48         
49         filename oscmd pipe "ls -l &amp;amp;path./test*";
50         
51         data _null_;
52         infile oscmd;
53         input;
54         put _infile_;
55         run;

NOTE: The infile OSCMD is:
      Pipe-Kommando="ls -l XXXX/sasuser.v94/test*"

-rw-r--r--    1 XXXXX    group     131072 Nov 05 08:21 XXXX/sasuser.v94/test1.sas7bdat
-rw-rw-r--    1 XXXXX    group     131072 Nov 05 08:21 XXXX/sasuser.v94/test2.sas7bdat
NOTE: 2 records were read from the infile OSCMD.
      The minimum record length was 104.
      The maximum record length was 104.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      

56         
57         x "chmod 664 &amp;amp;path./test1.sas7bdat"
57       !                                    ;
58         
59         data _null_;
60         infile oscmd;
61         input;
62         put _infile_;
63         run;

NOTE: The infile OSCMD is:
      Pipe-Kommando="ls -l XXXX/sasuser.v94/test*"

-rw-rw-r--    1 XXXXX    group     131072 Nov 05 08:21 XXXX/sasuser.v94/test1.sas7bdat
-rw-rw-r--    1 XXXXX    group     131072 Nov 05 08:21 XXXX/sasuser.v94/test2.sas7bdat
&lt;/PRE&gt;
&lt;P&gt;You can see that the second test dataset created after the umask command now had group write permission set; and you can see how to easily retrieve a path with the pathname function, and how to apply the chmod command to a dataset file. Finally, you can also see the best way to run external commands by using a filename pipe.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 07:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601585#M35027</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-05T07:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: file permission - how to make sure everyone can save the output to the same dataset in the libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601589#M35028</link>
      <description>&lt;P&gt;it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;instead of using the existing dataset, I have created a new dataset and&amp;nbsp;used PUTTY and "chmod 770" to change the new dataset with "-rw-rw-r--&amp;nbsp;" to the group, I believe the problem is resolved and other members in the team can run the project and override the new dataset from then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for everyone who has helped.:)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 08:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/file-permission-how-to-make-sure-everyone-can-save-the-output-to/m-p/601589#M35028</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-11-05T08:37:45Z</dc:date>
    </item>
  </channel>
</rss>

