<?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: ODS HTML output into EXCEL Help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134685#M260941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you not have two ods html file= statements one for each path?&lt;/P&gt;&lt;P&gt;If not, just put your reporting in a macro and call it twice each time with different path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 09:51:12 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-07-24T09:51:12Z</dc:date>
    <item>
      <title>ODS HTML output into EXCEL Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134684#M260940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one can help how to send the same SAS HTML OUTPUT into a two locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I have a two paths like below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) C:\Shiva&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2) C:\Shiva\Final&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i want to save my SAS html output into a excel, the below basic code is saving only one output for one path only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS HMTL FILE="C:\Shiva\TEMP.XLS"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My query is same output want to save in two or more paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me to overcome this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 09:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134684#M260940</guid>
      <dc:creator>shivakrishna</dc:creator>
      <dc:date>2014-07-24T09:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML output into EXCEL Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134685#M260941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you not have two ods html file= statements one for each path?&lt;/P&gt;&lt;P&gt;If not, just put your reporting in a macro and call it twice each time with different path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 09:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134685#M260941</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-24T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML output into EXCEL Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134686#M260942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second path having excel file giving empty result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 15:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134686#M260942</guid>
      <dc:creator>shivakrishna</dc:creator>
      <dc:date>2014-07-24T15:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML output into EXCEL Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134687#M260943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post code used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 15:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134687#M260943</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-24T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML output into EXCEL Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134688#M260944</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; The problem with having 2 ODS HTML statements (without any unique identifier) is that only 1 instance of a destination can be open at any time in a step. But, when the ODS destination has a unique ID= value, then ODS can have 2 (or more) instances of the same destination open at the same time. You need to investigate the use of the ID= option in order to open 2 instances of the &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;same&lt;/STRONG&gt;&lt;/SPAN&gt; destination at the same time:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html(id=1) file='c:\temp\report1.html' style=analysis;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html(id=2) file='c:\temp\output\report2.html' style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;And, just to clarify what you are doing ... you said "Then i want to save my SAS html output into a excel" -- when you use ODS HTML, you are NOT, NOT, NOT creating a "true, binary" Excel file by naming the file with the .XLS file extension. All you are doing is "fooling" the Windows registry into launching Excel when you double click on the file name. If you look inside the file you create with ODS HTML (using NOTEPAD or any Text Editor --not Microsoft Word), then you will see HTML tags.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 15:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-output-into-EXCEL-Help/m-p/134688#M260944</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-07-24T15:40:27Z</dc:date>
    </item>
  </channel>
</rss>

