<?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: FCOPY in scheduler copies file as read only, but read/write when run manually in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/FCOPY-in-scheduler-copies-file-as-read-only-but-read-write-when/m-p/646257#M19195</link>
    <description>&lt;P&gt;Can you run system commands from SAS?&amp;nbsp; &amp;nbsp;Is SAS running on some flavor of Unix?&lt;/P&gt;
&lt;P&gt;Perhaps SAS is using the umask setting of the process that started SAS?&lt;/P&gt;
&lt;P&gt;Check your umask setting.&lt;/P&gt;
&lt;P&gt;Personally I like to use 002 as the umask instead of 022 so that new files are created with both user and group write bits set to enable teamwork.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can run system commands and are using unix then use the cp command with -p option to preserve the permission when copying the file.&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 18:48:15 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-05-08T18:48:15Z</dc:date>
    <item>
      <title>FCOPY in scheduler copies file as read only, but read/write when run manually</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/FCOPY-in-scheduler-copies-file-as-read-only-but-read-write-when/m-p/646251#M19194</link>
      <description>&lt;P&gt;Hello!!&lt;/P&gt;&lt;P&gt;I have a SAS program which when I run manually copies file with read/write access but when run in scheduler in SAS Server copies file only with read access.&lt;/P&gt;&lt;P&gt;How can I resolve it to copy files with read/write access even when run in SAS server scheduler?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;rc=fcopy('src', 'dest');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 15:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/FCOPY-in-scheduler-copies-file-as-read-only-but-read-write-when/m-p/646251#M19194</guid>
      <dc:creator>AviS</dc:creator>
      <dc:date>2020-05-08T15:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: FCOPY in scheduler copies file as read only, but read/write when run manually</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/FCOPY-in-scheduler-copies-file-as-read-only-but-read-write-when/m-p/646257#M19195</link>
      <description>&lt;P&gt;Can you run system commands from SAS?&amp;nbsp; &amp;nbsp;Is SAS running on some flavor of Unix?&lt;/P&gt;
&lt;P&gt;Perhaps SAS is using the umask setting of the process that started SAS?&lt;/P&gt;
&lt;P&gt;Check your umask setting.&lt;/P&gt;
&lt;P&gt;Personally I like to use 002 as the umask instead of 022 so that new files are created with both user and group write bits set to enable teamwork.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can run system commands and are using unix then use the cp command with -p option to preserve the permission when copying the file.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 18:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/FCOPY-in-scheduler-copies-file-as-read-only-but-read-write-when/m-p/646257#M19195</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-08T18:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: FCOPY in scheduler copies file as read only, but read/write when run manually</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/FCOPY-in-scheduler-copies-file-as-read-only-but-read-write-when/m-p/646288#M19196</link>
      <description>&lt;P&gt;The scheduler runs from another userID than your "manual" execution. If it uses the standard umask of 022, only the scheduler user will have write permission.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 18:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/FCOPY-in-scheduler-copies-file-as-read-only-but-read-write-when/m-p/646288#M19196</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-08T18:31:03Z</dc:date>
    </item>
  </channel>
</rss>

