<?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: Error opening attachment file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/434564#M28074</link>
    <description>&lt;P&gt;Enterprise Guide is just a frontend for a so-called workspace server, which is the actual SAS process that does all the work. In your case, this workspace server runs on a remote UNIX server. To include a file as an attachment in mail directly out of SAS code, the file needs to reside in the UNIX server, or on a shared network resource visible from the server.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2018 15:22:55 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-02-06T15:22:55Z</dc:date>
    <item>
      <title>ERROR: Error opening attachment file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/434545#M28073</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to send an email with attachment via SAS, but it seems not to recognize the local route of the file. Everytime I try to send it, I get the error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Error opening attachment file C:\SASDATA\DATA.csv.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: Physical file does not exist, /sas/sasconfig/Lev1/SASApp/C:\SASDATA\DATA.csv.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The code is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME MailBox EMAIL ATTACH='C:\SASDATA\DATA.csv'&lt;/P&gt;&lt;P&gt;to= ('ch@hotmail.com')&lt;BR /&gt;type='text/html'&lt;BR /&gt;subject= 'TEST'&lt;BR /&gt;from='DE@hotmail.com';&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;file MailBox;&lt;BR /&gt;put 'FILE ATTACHED';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 14:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/434545#M28073</guid>
      <dc:creator>rodrichiez</dc:creator>
      <dc:date>2018-02-06T14:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Error opening attachment file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/434564#M28074</link>
      <description>&lt;P&gt;Enterprise Guide is just a frontend for a so-called workspace server, which is the actual SAS process that does all the work. In your case, this workspace server runs on a remote UNIX server. To include a file as an attachment in mail directly out of SAS code, the file needs to reside in the UNIX server, or on a shared network resource visible from the server.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 15:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/434564#M28074</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-06T15:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Error opening attachment file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562881#M33847</link>
      <description>&lt;P&gt;I am getting a similar error....&lt;/P&gt;&lt;P&gt;I kindoff understand your response but how can rectify the problem of "Physical file does not exist"..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;%let report_file = %sysfunc(pathname(work));&lt;BR /&gt;ods pdf file="&amp;amp;report_file/Name_of_file.pdf" pdftoc=1 startpage=yes bookmarklist=hide;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.......proc report portion.............&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename mailbox email attach='&amp;amp;report_file/Name_of_file.pdf'&lt;BR /&gt;to ='my_email@sas.com'&lt;BR /&gt;from='my_email@sas.com'&lt;BR /&gt;replyto='my_email@sas.com'&lt;BR /&gt;subject='mail file'&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;file mailbox;&lt;BR /&gt;put "Hi,";&lt;BR /&gt;Put "Attached is the Report";&lt;BR /&gt;put ;&lt;BR /&gt;put "Regards";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the error:&lt;/P&gt;&lt;P&gt;ERROR: Error opening attachment file:&amp;amp;report_file/Name_of_file.pdf.&lt;/P&gt;&lt;P&gt;ERROR: Physcial file does not exist, /sasnoapps/prodnoconfig/Lev1/Server1/&amp;amp;report_file/Name_of_File.pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 15:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562881#M33847</guid>
      <dc:creator>new_sas_user_4</dc:creator>
      <dc:date>2019-05-31T15:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Error opening attachment file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562886#M33848</link>
      <description>&lt;P&gt;The macro processor does not process text inside of single quote characters. Use the double quote character instead like you did earlier in the program.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;attach="&amp;amp;report_file/Name_of_file.pdf"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 15:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562886#M33848</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-31T15:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Error opening attachment file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562892#M33850</link>
      <description>&lt;P&gt;This might have been a simple thing for you ...but you saved me so much more reading..&lt;/P&gt;&lt;P&gt;I am doing this for the first time and had been reading stuff from ..SMTP setup, a few other pdfs... etc to resolve this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a tonnnnnnnnnnn &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any reading material on proc report?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any material on formatting a ods pdf ?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 15:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562892#M33850</guid>
      <dc:creator>new_sas_user_4</dc:creator>
      <dc:date>2019-05-31T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Error opening attachment file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562966#M33852</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213838"&gt;@new_sas_user_4&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached I let you an useful reading about PROC REPORT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 19:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562966#M33852</guid>
      <dc:creator>rodrichiez</dc:creator>
      <dc:date>2019-05-31T19:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Error opening attachment file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562984#M33853</link>
      <description>&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 19:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Error-opening-attachment-file/m-p/562984#M33853</guid>
      <dc:creator>new_sas_user_4</dc:creator>
      <dc:date>2019-05-31T19:37:18Z</dc:date>
    </item>
  </channel>
</rss>

