<?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: Can we control access/ permissions of RTF/ xlsx files using SAS. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839810#M332019</link>
    <description>&lt;P&gt;This paper has some examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/pharmasug/2011/AD/PharmaSUG-2011-AD06.pdf" target="_blank"&gt;https://www.lexjansen.com/pharmasug/2011/AD/PharmaSUG-2011-AD06.pdf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2022 22:16:27 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2022-10-20T22:16:27Z</dc:date>
    <item>
      <title>Can we control access/ permissions of RTF/ xlsx files using SAS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839802#M332016</link>
      <description>&lt;P&gt;I encountered the following requests that I never think of it.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I need to generate the RTF using as and make as Read only RTF. is there any option that SAS will do this? I searched some but there is no luck . I know the access option for datasets but not RTF. I read about filename permission and tried but not sure how to use it.&lt;/LI&gt;
&lt;LI&gt;It is also similar to the first one, but this one is xlsx file&amp;nbsp; which is already exist. can we change the permission of the file, using the SAS&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If SAS will not work , is there alternatives that we can do using SAS like vbscript or cmd commands.. etc.&amp;nbsp; I am aware RTF is a text file giving this read-only doesn't guarantee any strong securities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestion? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 21:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839802#M332016</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-10-20T21:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we control access/ permissions of RTF/ xlsx files using SAS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839805#M332017</link>
      <description>&lt;P&gt;I would look into how to set those permissions from the OS.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your SAS session has XCMD option enabled, then if you how to set the permissions via OS command, you can use the X or SYSTASK&amp;nbsp; statement to execute the OS command.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you're using SAS to generate the file, and also using SAS to set the permissions after generating the file.&amp;nbsp; By having SAS send a command for the OS to execute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you're on linux, look into the CHMOD command.&amp;nbsp; And I'm sure there's something similar for windows.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 21:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839805#M332017</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-10-20T21:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can we control access/ permissions of RTF/ xlsx files using SAS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839807#M332018</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp; for quick options. I am kind of new to use the cmd in SAS ( windows). by any chance can you guide to the reference or a syntax will help. Really appreciate your time.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* create  renaming and looking for set read-only access*/

ods rtf file="c:\documents\sample.rtf";* style=table_rtf;
proc print data= sashelp.class;
run;
ods _all_ close;


*trying x command;&lt;BR /&gt;options noxwait;&lt;BR /&gt;data _null_;&lt;BR /&gt;x 'attrib r+ "c:\documents\sample.rtf"';&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Oct 2022 22:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839807#M332018</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-10-20T22:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can we control access/ permissions of RTF/ xlsx files using SAS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839810#M332019</link>
      <description>&lt;P&gt;This paper has some examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/pharmasug/2011/AD/PharmaSUG-2011-AD06.pdf" target="_blank"&gt;https://www.lexjansen.com/pharmasug/2011/AD/PharmaSUG-2011-AD06.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 22:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839810#M332019</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-10-20T22:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can we control access/ permissions of RTF/ xlsx files using SAS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839812#M332020</link>
      <description>&lt;P&gt;thank you the references got what I need. It worked. Thanks you again.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;options noxwait noxsync;&lt;BR /&gt;data _null_;&lt;BR /&gt;x 'attrib +r "D:\sample.rtf"';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 22:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-control-access-permissions-of-RTF-xlsx-files-using-SAS/m-p/839812#M332020</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-10-20T22:31:39Z</dc:date>
    </item>
  </channel>
</rss>

