<?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 proc copy and unix permissions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485882#M126293</link>
    <description>&lt;P&gt;We are submitting programs via EG 7.1 64-bit on Win10 for execution&amp;nbsp;on a 64-bit AIX server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a proc copy that's copying the data set just fine but the permissions in the target library aren't what we're expecting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the program runs, we use umask 002 and so In the source library&amp;nbsp;the data set permissions are 775.&amp;nbsp; But in the target library they're showing as 664.&amp;nbsp; It's not impacting usability but I'd like to know what's going on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't spoken with a SysAdmin yet but is it possible that the directory permissions are set to default to 664 so that's what they're defaulting to?&amp;nbsp; I thought I'd give the community first crack at telling me what's going on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Different owner-ids&amp;nbsp;own each directory that the librefs point to, but the same group-id owns both of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our work around is to run the X-command to change the permissions&amp;nbsp;&amp;nbsp;after the copy runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2018 17:23:23 GMT</pubDate>
    <dc:creator>bentleyj1</dc:creator>
    <dc:date>2018-08-10T17:23:23Z</dc:date>
    <item>
      <title>proc copy and unix permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485882#M126293</link>
      <description>&lt;P&gt;We are submitting programs via EG 7.1 64-bit on Win10 for execution&amp;nbsp;on a 64-bit AIX server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a proc copy that's copying the data set just fine but the permissions in the target library aren't what we're expecting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the program runs, we use umask 002 and so In the source library&amp;nbsp;the data set permissions are 775.&amp;nbsp; But in the target library they're showing as 664.&amp;nbsp; It's not impacting usability but I'd like to know what's going on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't spoken with a SysAdmin yet but is it possible that the directory permissions are set to default to 664 so that's what they're defaulting to?&amp;nbsp; I thought I'd give the community first crack at telling me what's going on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Different owner-ids&amp;nbsp;own each directory that the librefs point to, but the same group-id owns both of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our work around is to run the X-command to change the permissions&amp;nbsp;&amp;nbsp;after the copy runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485882#M126293</guid>
      <dc:creator>bentleyj1</dc:creator>
      <dc:date>2018-08-10T17:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc copy and unix permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485890#M126296</link>
      <description>&lt;P&gt;Do you run the proc copy from the exact same SAS instance that creates the source datasets?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do the datasets already exist in the target library?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485890#M126296</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-10T17:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc copy and unix permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485894#M126298</link>
      <description>&lt;P&gt;I suspect they're inheriting the folder permissions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried the CLONE option on PROC DATASETS?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485894#M126298</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-10T17:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc copy and unix permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485900#M126302</link>
      <description>&lt;P&gt;Wow, this is almost like IM'ing in real time.&amp;nbsp; Thanks to both of you for the fast replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kurt, yes, the same instance of SAS runs the Proc Copy.&amp;nbsp; Actually, it runs soon after the "final" data set is created.&amp;nbsp; We move it because we don't want the users using datasets in our production directories.&amp;nbsp; No, the dataset doesn't exist in the target directory... we rename it as a backup immediately before copying the new one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reeza, I didn't look at Proc Datasets.&amp;nbsp; I'm so used to Proc Copy for this sort of thing I didn't consider proc datasets and the options it might have.&amp;nbsp; I'll give it a look and a test run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 18:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485900#M126302</guid>
      <dc:creator>bentleyj1</dc:creator>
      <dc:date>2018-08-10T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc copy and unix permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485903#M126304</link>
      <description>&lt;P&gt;Oh, wait.&lt;/P&gt;
&lt;P&gt;After reading your initial post again, the problem is not with your target, but with your source.&lt;/P&gt;
&lt;P&gt;A umask of 002 should always result in a 664 permission on files, and 775 on directories. SAS datasets should not have the executable bit set (what the odd permissions show). So something is not right with the creation of your source datasets.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 18:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485903#M126304</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-10T18:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc copy and unix permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485933#M126318</link>
      <description>&lt;P&gt;Wow.&amp;nbsp; It appears I didn't fully understand the one of the basics about Unix permissions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forgive me but I just verified your answer and you are correct.&amp;nbsp; umask 002 gives file permissions 664 on files and 775 on directories.&amp;nbsp; I thought everything started with 777!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;A href="https://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html" target="_blank"&gt;https://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for everyone's help.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 20:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-copy-and-unix-permissions/m-p/485933#M126318</guid>
      <dc:creator>bentleyj1</dc:creator>
      <dc:date>2018-08-10T20:07:06Z</dc:date>
    </item>
  </channel>
</rss>

