<?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: send an email from SAS and attach a file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582333#M165616</link>
    <description>&lt;P&gt;Could you please check the path again. I believe this is not the correct path, could you share the screenshot of the actual path&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token string"&gt;\\path\Report.xlsx&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 07:55:17 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2019-08-20T07:55:17Z</dc:date>
    <item>
      <title>send an email from SAS and attach a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582329#M165615</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to send an email from SAS and attach a file.&lt;/P&gt;
&lt;P&gt;I receive an error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Error opening attachment file \\path\Report.xlsx.&lt;BR /&gt;ERROR: Physical file does not exist, \\path\Report.xlsx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I check and the path is correct so I cannot understand what is the problem.&lt;/P&gt;
&lt;P&gt;How can I check if the problem is with my&amp;nbsp;&lt;SPAN&gt;authorization?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
file sendit email
from="XXX@gmail.com"
to=("YYY@gmail.com")
subject="Important Document"
importance="High"
attach=("\\path\Report.xlsx");
put "Please find attached the file";
put;
put "Thanks!";
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Aug 2019 07:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582329#M165615</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-08-20T07:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS and attach a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582333#M165616</link>
      <description>&lt;P&gt;Could you please check the path again. I believe this is not the correct path, could you share the screenshot of the actual path&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token string"&gt;\\path\Report.xlsx&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 07:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582333#M165616</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-08-20T07:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS and attach a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582334#M165617</link>
      <description>&lt;P&gt;The path is 100% correct.&lt;/P&gt;
&lt;P&gt;I changed it in the post because I cannot write path of my work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582334#M165617</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-08-20T08:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS and attach a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582337#M165618</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you read anything from this path via a "normal" libname or filename statement?&lt;/P&gt;
&lt;P&gt;Have you by any chance the Excel opened via another application (i.e. via a local MS Excel)?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582337#M165618</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-08-20T08:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS and attach a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582339#M165620</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Excel file is not opened&lt;/P&gt;
&lt;P&gt;Path is correct (If I go to start and paste the path then i can see the excel file)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582339#M165620</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-08-20T08:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS and attach a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582340#M165621</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Excel file is not opened&lt;/P&gt;
&lt;P&gt;Path is correct (If I go to start and paste the path then i can see the excel file)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I assume you can see the path from your local machine. If SAS isn't installed on your local machine then this doesn't tell you if this path is also correct on the machine where SAS executes - that's why I've asked you if you're able to execute any filename or libname statement using this path. Just try: &lt;EM&gt;libname test '\\path';&lt;/EM&gt; This will already tell you if the path as such is accessible from the SAS side.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-and-attach-a-file/m-p/582340#M165621</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-08-20T08:23:30Z</dc:date>
    </item>
  </channel>
</rss>

