<?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 ods excel output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-output/m-p/717301#M221798</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I have two SAS tables. The first table contains data for early patient records&lt;/P&gt;
&lt;P&gt;and second the data for late stages of patient records.&lt;/P&gt;
&lt;P&gt;I want to output the data from both tables in one excel sheet as below:&lt;/P&gt;
&lt;P&gt;I tried using 2 proc print statements, the result is written quiet in one excel table but in two different sheets. I want the output one below the other as in this example. Here my SAS code. I will appreciate any help&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='mypath\myexcelfile.xlsx';

proc print data= data_early;
run;

proc print data= data_late;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;TABLE class="lia-align-center" style="height: 50px; border-collapse: collapse; width: 350pt;" border="2" width="350pt" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="height: 14.5pt; width: 60pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="border-left: none; width: 60pt;"&gt;Stage I&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="border-left: none; width: 60pt;"&gt;Stage II&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl63" style="border-left: none; width: 60pt;"&gt;Stage III&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl63" style="border-left: none; width: 60pt;"&gt;Stage IV&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="height: 14.5pt; border-top: none;"&gt;early&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="border-top: none; border-left: none;"&gt;34&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl63" style="border-top: none; border-left: none;"&gt;134&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" style="height: 14.5pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="height: 14.5pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="border-left: none;"&gt;metas (IV)&lt;/TD&gt;
&lt;TD colspan="2" width="186px" height="14px" class="xl65" style="border-right: .5pt solid black; border-left: none;"&gt;leg (I-III)&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="height: 14.5pt; border-top: none;"&gt;late&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="border-top: none; border-left: none;"&gt;L_III&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl64" style="border-top: none; border-left: none;"&gt;D_I_II&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" style="height: 14.5pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="border-top: none;"&gt;6&amp;nbsp;&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Sat, 06 Feb 2021 13:12:41 GMT</pubDate>
    <dc:creator>Anita_n</dc:creator>
    <dc:date>2021-02-06T13:12:41Z</dc:date>
    <item>
      <title>ods excel output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-output/m-p/717301#M221798</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I have two SAS tables. The first table contains data for early patient records&lt;/P&gt;
&lt;P&gt;and second the data for late stages of patient records.&lt;/P&gt;
&lt;P&gt;I want to output the data from both tables in one excel sheet as below:&lt;/P&gt;
&lt;P&gt;I tried using 2 proc print statements, the result is written quiet in one excel table but in two different sheets. I want the output one below the other as in this example. Here my SAS code. I will appreciate any help&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='mypath\myexcelfile.xlsx';

proc print data= data_early;
run;

proc print data= data_late;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;TABLE class="lia-align-center" style="height: 50px; border-collapse: collapse; width: 350pt;" border="2" width="350pt" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="height: 14.5pt; width: 60pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="border-left: none; width: 60pt;"&gt;Stage I&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="border-left: none; width: 60pt;"&gt;Stage II&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl63" style="border-left: none; width: 60pt;"&gt;Stage III&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl63" style="border-left: none; width: 60pt;"&gt;Stage IV&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="height: 14.5pt; border-top: none;"&gt;early&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="border-top: none; border-left: none;"&gt;34&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl63" style="border-top: none; border-left: none;"&gt;134&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" style="height: 14.5pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="height: 14.5pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="border-left: none;"&gt;metas (IV)&lt;/TD&gt;
&lt;TD colspan="2" width="186px" height="14px" class="xl65" style="border-right: .5pt solid black; border-left: none;"&gt;leg (I-III)&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="height: 14.5pt; border-top: none;"&gt;late&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="border-top: none; border-left: none;"&gt;L_III&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl64" style="border-top: none; border-left: none;"&gt;D_I_II&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="92.6667px" height="14px" style="height: 14.5pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92.6667px" height="14px" class="xl64" style="border-top: none;"&gt;6&amp;nbsp;&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD width="93.3333px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Sat, 06 Feb 2021 13:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-excel-output/m-p/717301#M221798</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-02-06T13:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-output/m-p/717330#M221812</link>
      <description>Ods excel options(sheet_interval=“None”).&lt;BR /&gt;&lt;BR /&gt;This will put them on the same sheet.</description>
      <pubDate>Sat, 06 Feb 2021 20:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-excel-output/m-p/717330#M221812</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-02-06T20:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-output/m-p/717370#M221831</link>
      <description>&lt;P&gt;Thanks it worked&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 09:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-excel-output/m-p/717370#M221831</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-02-07T09:35:16Z</dc:date>
    </item>
  </channel>
</rss>

