<?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: Export files are locked, Cannot create RTF in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Export-files-are-locked-Cannot-create-RTF/m-p/779712#M31573</link>
    <description>&lt;P&gt;Please post the code you are using and the complete log, so that we see what happens actually.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2021 06:08:27 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-11-11T06:08:27Z</dc:date>
    <item>
      <title>Export files are locked, Cannot create RTF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Export-files-are-locked-Cannot-create-RTF/m-p/779702#M31570</link>
      <description>&lt;P&gt;Hey, brand new user here! I switched from Mac to PC and am (shockingly!) having some new hiccups with SAS. Every time I do a data export the file is locked and I have to rename it. It's annoying but nothing difficult. The problem arises when I try to create an RTF with my result tables--since I have to re-run the codes to create the tables and the exported datafiles are all locked the code can't run and I can't figure out how to change the settings so the exported files are&amp;nbsp;&lt;EM&gt;not&amp;nbsp;&lt;/EM&gt;locked on arrival. Help!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 04:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Export-files-are-locked-Cannot-create-RTF/m-p/779702#M31570</guid>
      <dc:creator>mgoddard</dc:creator>
      <dc:date>2021-11-11T04:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export files are locked, Cannot create RTF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Export-files-are-locked-Cannot-create-RTF/m-p/779705#M31572</link>
      <description>&lt;P&gt;Since you are new "export" is a specific procedure and the term refers basically to files intended for data transmission.&lt;/P&gt;
&lt;P&gt;RTF would not qualify as "export" as such because of accompanying formatting and such of tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are generating RTF (or any other ODS destination) you have to close the destination, otherwise SAS has the file still in use and would be considered locked.&lt;/P&gt;
&lt;P&gt;Very brief example:&lt;/P&gt;
&lt;PRE&gt;ods rtf file="somepath\somefile.rtf";

Proc print data=sashelp.class;
run;

&lt;FONT color="#800080"&gt;&lt;STRONG&gt;ods rtf close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;You can have many different procedures that generate output inside one Ods destination "sandwich" but you need to close each destination. The "sandwich" is a very informal term relating to the pair of "Ods &amp;lt;destination&amp;gt; ; Ods &amp;lt;destination&amp;gt; close; The first is the top slice of the sandwich and the close is the bottom slice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 05:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Export-files-are-locked-Cannot-create-RTF/m-p/779705#M31572</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-11-11T05:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Export files are locked, Cannot create RTF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Export-files-are-locked-Cannot-create-RTF/m-p/779712#M31573</link>
      <description>&lt;P&gt;Please post the code you are using and the complete log, so that we see what happens actually.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 06:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Export-files-are-locked-Cannot-create-RTF/m-p/779712#M31573</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-11-11T06:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Export files are locked, Cannot create RTF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Export-files-are-locked-Cannot-create-RTF/m-p/779891#M31587</link>
      <description>Are you writing to a location that has some weird permission settings that are being inherited?&lt;BR /&gt;A cloud storage location like OneDrive?</description>
      <pubDate>Fri, 12 Nov 2021 01:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Export-files-are-locked-Cannot-create-RTF/m-p/779891#M31587</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-12T01:35:08Z</dc:date>
    </item>
  </channel>
</rss>

