<?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 Studio Linux output dataset permissions vs. Batch dataset permissions in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975321#M11474</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something odd with output datasets, or other output file types, with our Linux Studio implementation.&lt;/P&gt;
&lt;P&gt;When running batch SAS files on our server the output file permission are "rw-rw-r--".&amp;nbsp; This is for datasets or XLSX files, etc.&lt;/P&gt;
&lt;P&gt;However, when running the exact same code in Studio&amp;nbsp;the output file permission are "rw-&lt;FONT size="5"&gt;&lt;STRONG&gt;r-&lt;/STRONG&gt;&lt;/FONT&gt;-r--".&amp;nbsp; &amp;nbsp;This means that the datasets are not&amp;nbsp; "write" shareable within the same group of staff.&lt;/P&gt;
&lt;P&gt;I've made sure that all staff have "umask 002" in their .bash_profile file.&amp;nbsp; Which should, and does, lead to creating rw-rw-r-- file permissions, like in batch processing.&lt;/P&gt;
&lt;P&gt;Does anyone know if there is a configuration change that can be made for Studio to default to rw-rw-r--?&lt;/P&gt;
&lt;P&gt;We do know that the permissions can be set via an X command within Studio code (or other programmatic methods) but with many different datasets created via some macros and names that are not always constant, this is not preferrable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 13:10:13 GMT</pubDate>
    <dc:creator>epniv</dc:creator>
    <dc:date>2025-09-18T13:10:13Z</dc:date>
    <item>
      <title>Studio Linux output dataset permissions vs. Batch dataset permissions</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975321#M11474</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something odd with output datasets, or other output file types, with our Linux Studio implementation.&lt;/P&gt;
&lt;P&gt;When running batch SAS files on our server the output file permission are "rw-rw-r--".&amp;nbsp; This is for datasets or XLSX files, etc.&lt;/P&gt;
&lt;P&gt;However, when running the exact same code in Studio&amp;nbsp;the output file permission are "rw-&lt;FONT size="5"&gt;&lt;STRONG&gt;r-&lt;/STRONG&gt;&lt;/FONT&gt;-r--".&amp;nbsp; &amp;nbsp;This means that the datasets are not&amp;nbsp; "write" shareable within the same group of staff.&lt;/P&gt;
&lt;P&gt;I've made sure that all staff have "umask 002" in their .bash_profile file.&amp;nbsp; Which should, and does, lead to creating rw-rw-r-- file permissions, like in batch processing.&lt;/P&gt;
&lt;P&gt;Does anyone know if there is a configuration change that can be made for Studio to default to rw-rw-r--?&lt;/P&gt;
&lt;P&gt;We do know that the permissions can be set via an X command within Studio code (or other programmatic methods) but with many different datasets created via some macros and names that are not always constant, this is not preferrable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 13:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975321#M11474</guid>
      <dc:creator>epniv</dc:creator>
      <dc:date>2025-09-18T13:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Studio Linux output dataset permissions vs. Batch dataset permissions</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975322#M11475</link>
      <description>&lt;P&gt;Sounds like this is Studio connected to a SAS 9 linux server, not Viya, is that correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just curious, is there a difference in the owner of the output file when the job is run in batch vs via Studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it's pretty common for scheduled batch jobs to be run under a different account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This related thread might be helpful:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/Applying-umask-007-to-all-with-possible-exceptions/td-p/762423" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/Applying-umask-007-to-all-with-possible-exceptions/td-p/762423&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It links to:&lt;BR /&gt;&lt;A href="https://sas.service-now.com/csm/en/setting-umask-and-ulimit-values-for-sas-sessions-on-unix-and-linux?id=kb_article_view&amp;amp;sysparm_article=KB0036220" target="_blank"&gt;https://sas.service-now.com/csm/en/setting-umask-and-ulimit-values-for-sas-sessions-on-unix-and-linux?id=kb_article_view&amp;amp;sysparm_article=KB0036220&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 13:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975322#M11475</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-09-18T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Studio Linux output dataset permissions vs. Batch dataset permissions</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975323#M11476</link>
      <description>&lt;P&gt;Hi Quentin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the questions, comments and links.&lt;/P&gt;
&lt;P&gt;This is not a Viya system.&amp;nbsp; It is &lt;SPAN&gt;Studio connected to a SAS 9 linux server,&lt;/SPAN&gt; AnalyticsPro installation.&amp;nbsp; Just one server, no metaserver.&lt;/P&gt;
&lt;P&gt;Yes, these are the same individual users generating the output in Studio vs. batch.&amp;nbsp; So, not scheduled batch jobs.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;KB0036220 link looks promising but I'll need to do some testing on that or wait for some more comments from others who may have solved this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 14:26:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975323#M11476</guid>
      <dc:creator>epniv</dc:creator>
      <dc:date>2025-09-18T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Studio Linux output dataset permissions vs. Batch dataset permissions</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975332#M11477</link>
      <description>&lt;P&gt;Batch jobs "inherit" permissions from the scheduler process. Add a umask command to the sasbatch_usermods.sh file of your application server context.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 17:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975332#M11477</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-09-18T17:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Studio Linux output dataset permissions vs. Batch dataset permissions</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975346#M11478</link>
      <description>&lt;P&gt;A bit off-topic, but I've taken to connecting to the SAS Studio server via Putty and just doing everything - developing and running code, file management, etc. - via the command line (and various bash functions / aliases stored in ~/.bashrc).&amp;nbsp; I open this connection with WinSCP (which subsequently launches Putty), and this gives the added benefit of being able to download all files at once - something that there's still not a simple, built-in way to do with the Studio interface.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, you might try that if there's no more direct way - just make a simple function that uses chmod to convert permissions on all *.sas7b* files, for example.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 00:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975346#M11478</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-09-19T00:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Studio Linux output dataset permissions vs. Batch dataset permissions</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975471#M11484</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Sorry if this is out of the norm for a response.&lt;BR /&gt;&lt;BR /&gt;Quentin's suggestion in the second link referencing KB0036220 had the answer.  By adding "umask 002" to my "workspaceserver_usermods.sh" config file did the trick.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2025 10:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Studio-Linux-output-dataset-permissions-vs-Batch-dataset/m-p/975471#M11484</guid>
      <dc:creator>epniv</dc:creator>
      <dc:date>2025-09-22T10:47:23Z</dc:date>
    </item>
  </channel>
</rss>

