<?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: ERROR: File is in use, . for SAS Emails in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-File-is-in-use-for-SAS-Emails/m-p/399546#M278504</link>
    <description>&lt;P&gt;Using "Insert Code" or "Insert SAS Code" to post code will increase readability.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ODS-statement is a global statment, so placing in within a data step is neither necessary nor has an useful effect. You don't need ODS-statements at all, just use put-statement in the data step to write the html-tags (not sure if this solves the problem).&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 16:51:22 GMT</pubDate>
    <dc:creator>error_prone</dc:creator>
    <dc:date>2017-09-28T16:51:22Z</dc:date>
    <item>
      <title>ERROR: File is in use, . for SAS Emails</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-File-is-in-use-for-SAS-Emails/m-p/399489#M278503</link>
      <description>&lt;P&gt;I have a simple program that checks a log and sends the results to the team once a program is complete. The file 'update_log' is the log of the program that has been uploaded into a SAS data set. The below code used to work with no issues, but now I am seeing&amp;nbsp;&lt;STRONG&gt;ERROR: File is in use, .&lt;/STRONG&gt;. I've read that this happens with the ODS statement sometimes, but I need it to be able to work with the filename statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let EMAIL= 'fake@email.com' ;&lt;/P&gt;&lt;P&gt;filename outfile clear;&lt;BR /&gt;filename outfile email&lt;BR /&gt;subject=&amp;nbsp; Data Update Summary Report &amp;amp;SYSDATE9."&lt;BR /&gt;to = (&amp;amp;EMAIL.)&lt;BR /&gt;REPLYTO = (&amp;amp;EMAIL.)&lt;BR /&gt;type = "text/html";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;file outfile;&lt;/P&gt;&lt;P&gt;ODS LISTING CLOSE;&lt;BR /&gt;ods html body=outfile ;&lt;/P&gt;&lt;P&gt;ods html text='&amp;lt;div align="center"&amp;gt;&lt;BR /&gt;&amp;lt;h3&amp;gt;System Message&amp;nbsp;&amp;lt;/h3&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;SEE WARNING/ERRORS BELOW&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;';&lt;BR /&gt;run;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods html text='&amp;lt;div align="center"&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;nbsp;UPDATE LOG&amp;nbsp;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;';&lt;BR /&gt;proc print data=UPDATE_LOG noobs label;&lt;BR /&gt;run;&lt;BR /&gt;ods html close;&lt;BR /&gt;ods listing;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-File-is-in-use-for-SAS-Emails/m-p/399489#M278503</guid>
      <dc:creator>DFHGSGSER</dc:creator>
      <dc:date>2017-09-28T13:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: File is in use, . for SAS Emails</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-File-is-in-use-for-SAS-Emails/m-p/399546#M278504</link>
      <description>&lt;P&gt;Using "Insert Code" or "Insert SAS Code" to post code will increase readability.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ODS-statement is a global statment, so placing in within a data step is neither necessary nor has an useful effect. You don't need ODS-statements at all, just use put-statement in the data step to write the html-tags (not sure if this solves the problem).&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 16:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-File-is-in-use-for-SAS-Emails/m-p/399546#M278504</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2017-09-28T16:51:22Z</dc:date>
    </item>
  </channel>
</rss>

