<?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 Excel Attachment without file path in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495380#M130728</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/163710"&gt;@CharlesFowler72&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;yes that sounds right. It has been explained to me in the past, a while back now. I work for a pretty big company and trying to change the system is essentially not an option. I need to just try and work round these problems and find alternative ways of doing things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this is my problem in trying to send a dataset as an excel attachment. All examples I find online use filepaths which just isn't an option for me.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You you just trying to find a path on your Unix box where you can create a file that you want to attach to an email?&lt;/P&gt;
&lt;P&gt;Why just just write the file into the WORK directory that SAS is using?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=%sysfunc(pathname(work));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Sep 2018 16:09:43 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-09-13T16:09:43Z</dc:date>
    <item>
      <title>Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495293#M130687</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in my work set up when im using sas I cannot accesses files directly from&amp;nbsp;file paths (e.g. C:\documents\Summary.pdf) meaning I cannot open or save anything down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is to send a data set "D_Jumpers" as an excel attachment in an email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment the code I have is...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;CODE class=" language-sas"&gt;FILENAME mail EMAIL TO='charles.fowler@company.co.uk'

SUBJECT="D Jumpers" CONTENT_TYPE="text/html";

ODS HTML BODY=mail;
PROC PRINT DATA=D_Jumpers;
RUN;
ODS HTML CLOSE;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&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;&lt;FONT face="Courier New" size="3"&gt;this puts the table in the body of the email. But I cant find anything online which puts the dataset in&amp;nbsp;an excel as an attachment without referencing a&amp;nbsp;"C:\filepath" anywhere.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;any help? something tells me I will be able to do a slight modification on the above code that will work but not sure what it is. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;thank you in advanced. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495293#M130687</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-13T14:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495303#M130693</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/163710"&gt;@CharlesFowler72&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so in my work set up when im using sas I cannot accesses files directly from&amp;nbsp;file paths (e.g. C:\documents\Summary.pdf) meaning I cannot open or save anything down.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I am trying to achieve is to send a data set "D_Jumpers" as an excel attachment in an email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the moment the code I have is...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;CODE class=" language-sas"&gt;FILENAME mail EMAIL TO='charles.fowler@company.co.uk'

SUBJECT="D Jumpers" CONTENT_TYPE="text/html";

ODS HTML BODY=mail;
PROC PRINT DATA=D_Jumpers;
RUN;
ODS HTML CLOSE;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&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;&lt;FONT face="Courier New" size="3"&gt;this puts the table in the body of the email. But I cant find anything online which puts the dataset in&amp;nbsp;an excel as an attachment without referencing a&amp;nbsp;"C:\filepath" anywhere.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;any help? something tells me I will be able to do a slight modification on the above code that will work but not sure what it is. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;thank you in advanced. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you describe why you "cannot accesses files directly from&amp;nbsp;file paths"? It might help to show some code and messages from the loq when attempting to do so. Perhaps it is a specific location issue.&lt;/P&gt;
&lt;P&gt;Can you create libraries anywhere?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495303#M130693</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-13T14:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495346#M130716</link>
      <description>&lt;P&gt;essentially its because it is blocked by the company I work for. So for example If I were trying to create a PDF (which ive tried before) using the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="c:\temp\Alfred.pdf";
 proc print data=D_Jumpers;
 title "D Jumpers";
 run;
 ods pdf close;
 title;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;then the error would be "ERROR: Insufficient authorization to access /grasp/sas92/config/sascompute/Lev1/SASApp/c:\temp\Alfred.pdf.". I've spoken to the IT department and have been told it cannot be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yeah we have plenty of library space to save the output data set.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 15:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495346#M130716</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-13T15:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495367#M130723</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/163710"&gt;@CharlesFowler72&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;essentially its because it is blocked by the company I work for. So for example If I were trying to create a PDF (which ive tried before) using the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="c:\temp\Alfred.pdf";
 proc print data=D_Jumpers;
 title "D Jumpers";
 run;
 ods pdf close;
 title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then the error would be "ERROR: Insufficient authorization to access /grasp/sas92/config/sascompute/Lev1/SASApp/c:\temp\Alfred.pdf.". I've spoken to the IT department and have been told it cannot be done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yeah we have plenty of library space to save the output data set.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your SAS code is running on Unix.&amp;nbsp; You cannot use Windows syntax to reference files when running on Unix.&amp;nbsp; You could create a shared network location that could be access by both the Unix server and your&amp;nbsp; Windows machine(s).&amp;nbsp; But the syntax for the path will most likely look different.&amp;nbsp; /grasp/data/temp/Alfred.pdf vs \\grasp_server\data\temp\Alfred.pdf&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 15:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495367#M130723</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-13T15:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495370#M130724</link>
      <description>&lt;P&gt;yes that sounds right. It has been explained to me in the past, a while back now. I work for a pretty big company and trying to change the system is essentially not an option. I need to just try and work round these problems and find alternative ways of doing things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this is my problem in trying to send a dataset as an excel attachment. All examples I find online use filepaths which just isn't an option for me.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 15:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495370#M130724</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-13T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495377#M130726</link>
      <description>&lt;P&gt;How did you create the Excel in the first place?&lt;/P&gt;
&lt;P&gt;If you use filename excel or ods excel, the resulting file will aready be stored on the server for filename email to pick it up.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 16:02:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495377#M130726</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-13T16:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495379#M130727</link>
      <description>&lt;P&gt;I haven't created it. Its just a temp data step at the moment "D_Jumpers". Am I just missing something really simple?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 16:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495379#M130727</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-13T16:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495380#M130728</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/163710"&gt;@CharlesFowler72&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;yes that sounds right. It has been explained to me in the past, a while back now. I work for a pretty big company and trying to change the system is essentially not an option. I need to just try and work round these problems and find alternative ways of doing things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this is my problem in trying to send a dataset as an excel attachment. All examples I find online use filepaths which just isn't an option for me.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You you just trying to find a path on your Unix box where you can create a file that you want to attach to an email?&lt;/P&gt;
&lt;P&gt;Why just just write the file into the WORK directory that SAS is using?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=%sysfunc(pathname(work));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Sep 2018 16:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495380#M130728</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-13T16:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495385#M130732</link>
      <description>&lt;P&gt;that would work. So then what code do I need to use to&amp;nbsp;send the dataset in the work directory as an excel file attachment?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 16:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495385#M130732</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-13T16:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495400#M130737</link>
      <description>&lt;P&gt;It seems pretty clear in the documentation.&amp;nbsp; Or here is an old article about it.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2008/038-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/038-2008.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So you make an XLSX file some how.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=%sysfunc(pathname(work));

* Make the EXCEL file ;
libname out xlsx "&amp;amp;path/myexcel.xlsx";
data out.report;
   set sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then when you are sending the email you use the ATTACH= option tell it to attach that file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME MailBox EMAIL ATTACH="&amp;amp;path/myexcel.xlsx";
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Sep 2018 16:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495400#M130737</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-13T16:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495404#M130739</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/163710"&gt;@CharlesFowler72&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I haven't created it. Its just a temp data step at the moment "D_Jumpers". Am I just missing something really simple?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It can't have appeared out of thin air (unless you're Harry Potter, of course). So I have to ask again: how was it created, and how did it end up on your C: drive?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 17:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495404#M130739</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-13T17:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495606#M130822</link>
      <description>&lt;P&gt;At the moment there is no excel file. There is just a dataset in my work library. I need that to be an excel file attached to an email with the problem that I don't have access to a drive to save the excel file down.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;It&amp;nbsp;could be an impossible task. &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 08:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495606#M130822</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-14T08:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495609#M130825</link>
      <description>When I run the Libname line I get an error "ERROR: The XLSX engine cannot be found."</description>
      <pubDate>Fri, 14 Sep 2018 08:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495609#M130825</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-14T08:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495612#M130827</link>
      <description>&lt;P&gt;Which SAS-version are you using? Executing&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=SYSVLONG;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;prints the version number to the log.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 09:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495612#M130827</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-09-14T09:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495613#M130828</link>
      <description>im using SAS Enterprise Guide 4.3</description>
      <pubDate>Fri, 14 Sep 2018 10:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495613#M130828</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-14T10:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495618#M130833</link>
      <description>&lt;P&gt;The version of Enterprise Guide is not tied to a specific sas-version, so please execute the code i posted.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 10:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495618#M130833</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-09-14T10:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495624#M130843</link>
      <description>1 The SAS System 09:04 Friday, September 14, 2018&lt;BR /&gt;&lt;BR /&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='as above but test';&lt;BR /&gt;4 %LET _CLIENTPROJECTPATH='\\GBMLVFILFS05N02\Home3$\fowlchl\Documents\Documents\SAS\RFW.egp';&lt;BR /&gt;5 %LET _CLIENTPROJECTNAME='RFW.egp';&lt;BR /&gt;6 %LET _SASPROGRAMFILE=;&lt;BR /&gt;7&lt;BR /&gt;8 ODS _ALL_ CLOSE;&lt;BR /&gt;9 OPTIONS DEV=ACTIVEX;&lt;BR /&gt;NOTE: Procedures may not support all options or statements for all devices. For details, see the documentation for each procedure.&lt;BR /&gt;10 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;11 FILENAME EGSR TEMP;&lt;BR /&gt;12 ODS tagsets.sasreport12(ID=EGSR) FILE=EGSR STYLE=Analysis&lt;BR /&gt;12 ! STYLESHEET=(URL="file:///V:/VOE06529.100/VFS/SFT_PROGRAM_FILES_X64/SAS92/EnterpriseGuide/4.3/Styles/Analysis.css")&lt;BR /&gt;12 ! NOGTITLE NOGFOOTNOTE GPATH=&amp;amp;sasworklocation ENCODING=UTF8 options(rolap="on");&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT12(EGSR) Body file: EGSR&lt;BR /&gt;13&lt;BR /&gt;14 GOPTIONS ACCESSIBLE;&lt;BR /&gt;15 %put &amp;amp;=SYSVLONG;&lt;BR /&gt;&amp;amp;=SYSVLONG&lt;BR /&gt;16&lt;BR /&gt;17 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;18 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;19 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;20 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;21 %LET _SASPROGRAMFILE=;&lt;BR /&gt;22&lt;BR /&gt;23 ;*';*";*/;quit;run;&lt;BR /&gt;24 ODS _ALL_ CLOSE;&lt;BR /&gt;25&lt;BR /&gt;26&lt;BR /&gt;27 QUIT; RUN;&lt;BR /&gt;28</description>
      <pubDate>Fri, 14 Sep 2018 10:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495624#M130843</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-14T10:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495630#M130846</link>
      <description>&lt;P&gt;From your log:&lt;/P&gt;
&lt;P&gt;12 ! STYLESHEET=(URL="file:///V:/VOE06529.100/VFS/SFT_PROGRAM_FILES_X64/&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;SAS92&lt;/FONT&gt;&lt;/STRONG&gt;/EnterpriseGuide/4.3/Styles/Analysis.css")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This SAS 9.2 and now the bad news: you need Access To PC Files licenced to create xls-files. And with that module you can't create xlsx-files.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 11:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495630#M130846</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-09-14T11:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495651#M130856</link>
      <description>&lt;P&gt;Since you are running an ancient version of SAS you cannot use the XLSX engine.&amp;nbsp; You could try PROC EXPORT.&lt;/P&gt;
&lt;P&gt;Or you might have to resort to producing an XML or HTML file and telling the use to let Excel convert it to a spreadsheet.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 12:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495651#M130856</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-14T12:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Send Excel Attachment without file path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495681#M130869</link>
      <description>&lt;P&gt;so based on my current code of&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME mail EMAIL TO='me@company.co.uk&amp;gt;' 
SUBJECT="D Jumpers" CONTENT_TYPE="text/html";
ODS HTML BODY=mail;
PROC PRINT DATA=work.D_Jumpers;
RUN;
ODS HTML CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;how do I change that to be an attachment rather than body of the email. Again, avoiding any path files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-Excel-Attachment-without-file-path/m-p/495681#M130869</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-09-14T13:54:58Z</dc:date>
    </item>
  </channel>
</rss>

