<?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 Generate Excel file for Office 2010 from Mainframe in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40565#M5551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Actually, you CAN still use ODS HTML3 or ODS HTML or ODS MSOFFICE2K, ODS PHTML or ODS CHTML to generate HTML files. And, you can use .XLS as the "fake" file extension. Office 2007 and Office 2010 will, in fact, open those files. It will complain. It will complain with a somewhat snarky message, as described in this Tech Support note: &lt;A href="http://support.sas.com/kb/31/956.html"&gt;http://support.sas.com/kb/31/956.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you click YES (or change the Windows Registry, as described) then you can still open the file. Rather than change the Windows Registry, I just educate the users to click YES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you can use ODS CSV to create a very compact, ASCII text file that can be opened in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 19:23:25 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-11-02T19:23:25Z</dc:date>
    <item>
      <title>Generate Excel file for Office 2010 from Mainframe</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40564#M5550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For years, I have used ODS&amp;nbsp; HTML3 to create "fake" .xls files that are then e.mailed from the Mainframe to users, who can then open the files in Excel directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Office 2010 no longer allows "fake" .xls files to be opened, as it appears to require true Native .xls files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XML files generated are too bloated for our Mainframe SMTP server to reliably handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the next best option?&amp;nbsp; I tried raw HTML files, but then users have to go through extra steps to open the file in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our Mainframe is being deprecated next year, so I'm hoping for something easyish, if anyone has any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;kjk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 19:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40564#M5550</guid>
      <dc:creator>NCNyrk</dc:creator>
      <dc:date>2011-11-02T19:02:27Z</dc:date>
    </item>
    <item>
      <title>Generate Excel file for Office 2010 from Mainframe</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40565#M5551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Actually, you CAN still use ODS HTML3 or ODS HTML or ODS MSOFFICE2K, ODS PHTML or ODS CHTML to generate HTML files. And, you can use .XLS as the "fake" file extension. Office 2007 and Office 2010 will, in fact, open those files. It will complain. It will complain with a somewhat snarky message, as described in this Tech Support note: &lt;A href="http://support.sas.com/kb/31/956.html"&gt;http://support.sas.com/kb/31/956.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you click YES (or change the Windows Registry, as described) then you can still open the file. Rather than change the Windows Registry, I just educate the users to click YES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you can use ODS CSV to create a very compact, ASCII text file that can be opened in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 19:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40565#M5551</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-11-02T19:23:25Z</dc:date>
    </item>
    <item>
      <title>Generate Excel file for Office 2010 from Mainframe</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40566#M5552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Office 2007 but I think the issue is the same.&lt;/P&gt;&lt;P&gt;I also use ods html3 on the mainframe to create files that I open with Excel.&lt;/P&gt;&lt;P&gt;I allocate the file like this:&lt;/P&gt;&lt;P&gt;FILENAME PDSEHTML 'TSM519.PDS.OUTPUT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DSNTYPE=LIBRARY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DSORG=PO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISP=(NEW,CATLG,DELETE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ODS HTML3 BODY = 'OUTPUT' (URL='OUTPUT.HTM') RS=NONE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATH = 'TSM519.PDS.OUTPUT' (URL=NONE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRANTAB = ASCII;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other SAS code, usually proc tabulate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ODS HTML3 CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I send the file in an email from the mainframe, I use this code&lt;/P&gt;&lt;P&gt;FILENAME MYMAIL EMAIL&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'GARY.BALD@GLOBALCROSSING.COM"&gt;'GARY.BALD@GLOBALCROSSING.COM&lt;/A&gt;&lt;SPAN&gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBJECT = 'SPREADSHEET'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ATTACH=("TSM519.PDS.OUTPUT(OUTPUT)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTENT_TYPE='HTML');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content_type is html rather than the default of text.&lt;/P&gt;&lt;P&gt;The file comes as an attachment with a .txt extension,&lt;/P&gt;&lt;P&gt;but I do a save as and give it .html extension.&lt;/P&gt;&lt;P&gt;When I open the file in Excel everything is formated.&lt;/P&gt;&lt;P&gt;I save it as an .xlsx file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if this will work in Office 2010, but it's worth a try.&amp;nbsp; Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 18:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40566#M5552</guid>
      <dc:creator>garybald</dc:creator>
      <dc:date>2011-11-03T18:28:54Z</dc:date>
    </item>
    <item>
      <title>Generate Excel file for Office 2010 from Mainframe</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40567#M5553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks...I am guessing I have a bad registry setting.&amp;nbsp; When I try to open the fake file in Office 2010, I get the snarky message, but there is no way to bypass the warning.&amp;nbsp; I will have to try it on my home machine, where I don't have to go through our internal Tech Support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 20:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40567#M5553</guid>
      <dc:creator>NCNyrk</dc:creator>
      <dc:date>2011-11-03T20:02:58Z</dc:date>
    </item>
    <item>
      <title>Generate Excel file for Office 2010 from Mainframe</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40568#M5554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your idea; we may have to resort to save/rename, but I have a number of users to support who would probably not remember to do this every time, sigh. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 20:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40568#M5554</guid>
      <dc:creator>NCNyrk</dc:creator>
      <dc:date>2011-11-03T20:03:47Z</dc:date>
    </item>
    <item>
      <title>Generate Excel file for Office 2010 from Mainframe</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40569#M5555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I played around with this a little more and found out you can&lt;/P&gt;&lt;P&gt;add an extension option like below.&amp;nbsp; The file will come with .htm instead&lt;/P&gt;&lt;P&gt;of .txt.&amp;nbsp; Your users could open it with Excel and wouldn't have to&lt;/P&gt;&lt;P&gt; rename it to open it.&amp;nbsp; If they want an Excel file, they&lt;/P&gt;&lt;P&gt;would just have to remember to save it that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;FILENAME MYMAIL EMAIL&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'GARY.BALD@GLOBALCROSSING.COM" style="outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; zoom: 1; color: #0e66ba; background-position: no-repeat no-repeat;"&gt;'GARY.BALD@GLOBALCROSSING.COM&lt;/A&gt;&lt;SPAN&gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBJECT = 'SPREADSHEET'&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ATTACH=("TSM519.PDS.OUTPUT(OUTPUT)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTENT_TYPE='HTML'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXTENSION='HTM');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 21:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40569#M5555</guid>
      <dc:creator>garybald</dc:creator>
      <dc:date>2011-11-08T21:23:33Z</dc:date>
    </item>
    <item>
      <title>Generate Excel file for Office 2010 from Mainframe</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40570#M5556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use a valid mime content type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ATTACH=("TSM519.PDS.OUTPUT(OUTPUT)"&lt;/P&gt;&lt;P&gt;&amp;nbsp; CT="application/vnd.ms-excel"&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXT="xls"&lt;/P&gt;&lt;P&gt; NAME="my_excel_output" )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 23:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Generate-Excel-file-for-Office-2010-from-Mainframe/m-p/40570#M5556</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-11-08T23:15:15Z</dc:date>
    </item>
  </channel>
</rss>

