<?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: issues with emailing excel files, which are generated by ods excel in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470022#M24451</link>
    <description>&lt;P&gt;no error info in log file, but When I tried to open attached file, it said "we found a problem with some content in the excel file."&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 17:50:11 GMT</pubDate>
    <dc:creator>LMW5</dc:creator>
    <dc:date>2018-06-13T17:50:11Z</dc:date>
    <item>
      <title>issues with emailing excel files, which are generated by ods excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/467531#M24314</link>
      <description>&lt;P&gt;After generating excel files with ods excel and proc report, I used SAS email&amp;nbsp;macro to send out a email with excel files attached. But I couldn't open&amp;nbsp;attached excel files. If I emailed them manually, I can open them.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 22:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/467531#M24314</guid>
      <dc:creator>LMW5</dc:creator>
      <dc:date>2018-06-04T22:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: issues with emailing excel files, which are generated by ods excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/467533#M24315</link>
      <description>&lt;P&gt;Please show your code and log.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 22:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/467533#M24315</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-04T22:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: issues with emailing excel files, which are generated by ods excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470007#M24450</link>
      <description>&lt;P&gt;***to generate excel file***;&lt;/P&gt;&lt;P&gt;ods excel file="/pro/temp/list.xlsx" style=f304temp startpage=yes bodytitle;&lt;/P&gt;&lt;P&gt;proc report data=list_csv nowd split='*' headline headskip&lt;BR /&gt;style(header)=[font_size=10pt font_weight=bold]&lt;BR /&gt;style(column)=[just=center cellwidth=0.7in];&lt;BR /&gt;&lt;BR /&gt;column ("Center" ccn)("PID" pid) ("Code" ac);&lt;BR /&gt;&lt;BR /&gt;define ccn / display " " style=[just=left cellwidth=1.7in];&lt;BR /&gt;define pid/ display " ";&lt;BR /&gt;define ac/ display " " style=[cellwidth=0.6in];&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*** to email out the excel file***;&lt;/P&gt;&lt;P&gt;%macro mail7 (dy=2);&lt;/P&gt;&lt;P&gt;%if &amp;amp;ndy = &amp;amp;dy %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;file mailout;&lt;BR /&gt;put " ";&lt;BR /&gt;put " ";&lt;BR /&gt;filename mailout email&amp;nbsp;&lt;BR /&gt;from=('shes@yahoo.com')&lt;BR /&gt;to=('par@yahoo.com')&lt;BR /&gt;&amp;nbsp;subject="List of Patients &amp;amp;tdate"&lt;BR /&gt;attach=("/pro/94/list_&amp;amp;mdy..xlsx")&lt;BR /&gt;;&lt;BR /&gt;run ;&lt;BR /&gt;%end;&lt;BR /&gt;%mend mail7;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 17:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470007#M24450</guid>
      <dc:creator>LMW5</dc:creator>
      <dc:date>2018-06-13T17:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: issues with emailing excel files, which are generated by ods excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470022#M24451</link>
      <description>&lt;P&gt;no error info in log file, but When I tried to open attached file, it said "we found a problem with some content in the excel file."&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 17:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470022#M24451</guid>
      <dc:creator>LMW5</dc:creator>
      <dc:date>2018-06-13T17:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: issues with emailing excel files, which are generated by ods excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470042#M24452</link>
      <description>&lt;P&gt;Are you sure it happens during the email transfer? It's hard to imagine how sending it in the email could slightly damage a zip-compressed file without completely trashing it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd rather suspect that something in the SAS data messes with the XML structure of the xlsx file.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 18:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470042#M24452</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-13T18:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: issues with emailing excel files, which are generated by ods excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470047#M24453</link>
      <description>&lt;P&gt;Type: specifies the content type for the message body. If you do not specify any content type, SAS tries to determine the correct content type. You must enclose the value in quotation marks type='content/type' The default value of this parameter is ‘text/plain’.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me what is the list of "content/type"? thanks&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 18:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470047#M24453</guid>
      <dc:creator>LMW5</dc:creator>
      <dc:date>2018-06-13T18:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: issues with emailing excel files, which are generated by ods excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470055#M24454</link>
      <description>&lt;P&gt;The problem has been solved. Just need to point out content type:&lt;/P&gt;&lt;P&gt;attach=("/xxxx/xxxx/xxxxxxxxx.xlsx"&amp;nbsp; content_type="application/xlsx")&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/issues-with-emailing-excel-files-which-are-generated-by-ods/m-p/470055#M24454</guid>
      <dc:creator>LMW5</dc:creator>
      <dc:date>2018-06-13T19:11:10Z</dc:date>
    </item>
  </channel>
</rss>

