<?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: excel to html converter in sas in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-to-html-converter-in-sas/m-p/89720#M9298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks for your reply,&lt;/P&gt;&lt;P&gt;Actually i need to make this requirement as automated in SAS, As you told, we can do this with Excel techniques,But my user's want to make this automated process in sas,Can you help me out of this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 10:47:23 GMT</pubDate>
    <dc:creator>SunilCh</dc:creator>
    <dc:date>2013-06-04T10:47:23Z</dc:date>
    <item>
      <title>excel to html converter in sas</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-to-html-converter-in-sas/m-p/89718#M9296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know is there any way to convert multiple excel sheets into html directly with headder's and footnote's into sas.It should be automated.&lt;/P&gt;&lt;P&gt;For example&amp;nbsp; one of my excel sheet contains data like as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" frame="void" rules="none"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" height="20" width="270"&gt;&lt;STRONG&gt;BANK&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="left" width="327"&gt;&lt;STRONG&gt;INDIAN NATIANAL BANK&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" height="20"&gt;&lt;STRONG&gt;BRANCH&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="left"&gt;&lt;STRONG&gt;KUWAIT&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" height="20"&gt;&lt;STRONG&gt;AREA&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="left"&gt;&lt;STRONG&gt;CHINA&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" height="20"&gt;&lt;STRONG&gt;DISCRIPTION&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="left"&gt;&lt;STRONG&gt;DATA SHOLUD BE ALONG WITH GENIRIC ID”S&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="1" class="jiveBorder" style="width: 100%; border: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;NO&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;AGE&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;SAL&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;AX&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;DF&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;32&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;344&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;7000 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7000 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7000 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7000 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;323&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;32&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;323&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;323&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;323&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;32&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;13&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;323&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOOTNOTE:asjgdfghasfd dasdgyasjdgj dasdjasjd asjdgjad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the above assume that, There were multiple sheets i have in one file.Plz Help me out of this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 05:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-to-html-converter-in-sas/m-p/89718#M9296</guid>
      <dc:creator>SunilCh</dc:creator>
      <dc:date>2013-05-30T05:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: excel to html converter in sas</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-to-html-converter-in-sas/m-p/89719#M9297</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; I'm not sure why you need SAS for this task. Every since Office 97, you have been able to do a File--&amp;gt;Save As inside of Excel (and Word) to save your workbook or document as an HTML file. You have 2 choices with Excel -- either an HTML file or an MHT file. If you ask SAS to read the Excel sheet using PROC IMPORT or the LIBNAME engine, the data is a mixture of information. You do not have a simple structure of rows and columns. You could, for example, tell SAS to start reading data at row 5 or row 6 and to get the column headers out of row 4 or row 5, but I think that's not what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Why can't you use Excel techniques to create your HTML file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 16:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-to-html-converter-in-sas/m-p/89719#M9297</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-05-30T16:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: excel to html converter in sas</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-to-html-converter-in-sas/m-p/89720#M9298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks for your reply,&lt;/P&gt;&lt;P&gt;Actually i need to make this requirement as automated in SAS, As you told, we can do this with Excel techniques,But my user's want to make this automated process in sas,Can you help me out of this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 10:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-to-html-converter-in-sas/m-p/89720#M9298</guid>
      <dc:creator>SunilCh</dc:creator>
      <dc:date>2013-06-04T10:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: excel to html converter in sas</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-to-html-converter-in-sas/m-p/89721#M9299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is: What tells you in the Excel sheet what's header, what's body and what's footnote? Excel has simply columns and rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to implement some kind of logic to identify the header/footer section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had to do stuff like this in the past and it's ugly. My solution was to first convert the Excel to a csv and then implement some logic which determined if this was header or data section. In my case I needed to read only the data section into a SAS table, in your case you would then convert the text file to a html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Excel sheet structur you show us a Proc Import with enough "guessingrow" would do as there will be at least one row (the column headings) with character values so all variables would be "character". Once you have the data in a SAS table you need to find logic to split it up into header, data and footer section and then write the data as you wish to a html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have PC File Server then you could simply define a libname for your Excel workbook and by querying the sashelp.vstable it shouldn't be hard to get all the names of the sheets in this workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be the libname would already convert the Excel sheets into a format sufficient for further processing. I've made mixed experiences and it was always "try and error" for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 11:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-to-html-converter-in-sas/m-p/89721#M9299</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-06-04T11:11:17Z</dc:date>
    </item>
  </channel>
</rss>

