<?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 creating an excel report with each row has different format in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-an-excel-report-with-each-row-has-different-format/m-p/1971#M866</link>
    <description>HI &lt;BR /&gt;
I would like know how in sas ( may be using proc report and ods) to create an excel report with each row has different format.I tried few methods. But didn't succeed.&lt;BR /&gt;
for e,g:&lt;BR /&gt;
&lt;BR /&gt;
Say  I have a table with the a single row being sale and colums being type , Jan ,Feb, March. Another table with some thing similar but premium.Another one with closeratio and the respective months&lt;BR /&gt;
&lt;BR /&gt;
fo e.g&lt;BR /&gt;
&lt;BR /&gt;
sale table&lt;BR /&gt;
type   jan   feb   mar&lt;BR /&gt;
sale   1000 500    800&lt;BR /&gt;
&lt;BR /&gt;
saleindollar&lt;BR /&gt;
type      jan    feb      mar&lt;BR /&gt;
saledol   $39000 $8500    $15000&lt;BR /&gt;
&lt;BR /&gt;
saleratio&lt;BR /&gt;
type      jan    feb      mar&lt;BR /&gt;
saleratio   .8   .5       .6&lt;BR /&gt;
&lt;BR /&gt;
I would like to create an excel output something like&lt;BR /&gt;
&lt;BR /&gt;
summary&lt;BR /&gt;
--------&lt;BR /&gt;
type		jan		feb		Mar&lt;BR /&gt;
Sale		1000		500		800&lt;BR /&gt;
saledol         $39000          $8500          $15000&lt;BR /&gt;
saleratio       .8               .5             .6&lt;BR /&gt;
&lt;BR /&gt;
Any idea how to create a similar report. Thanks in advance for the help&lt;BR /&gt;
&lt;BR /&gt;
Suren</description>
    <pubDate>Wed, 20 Dec 2006 06:35:20 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-12-20T06:35:20Z</dc:date>
    <item>
      <title>creating an excel report with each row has different format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-an-excel-report-with-each-row-has-different-format/m-p/1971#M866</link>
      <description>HI &lt;BR /&gt;
I would like know how in sas ( may be using proc report and ods) to create an excel report with each row has different format.I tried few methods. But didn't succeed.&lt;BR /&gt;
for e,g:&lt;BR /&gt;
&lt;BR /&gt;
Say  I have a table with the a single row being sale and colums being type , Jan ,Feb, March. Another table with some thing similar but premium.Another one with closeratio and the respective months&lt;BR /&gt;
&lt;BR /&gt;
fo e.g&lt;BR /&gt;
&lt;BR /&gt;
sale table&lt;BR /&gt;
type   jan   feb   mar&lt;BR /&gt;
sale   1000 500    800&lt;BR /&gt;
&lt;BR /&gt;
saleindollar&lt;BR /&gt;
type      jan    feb      mar&lt;BR /&gt;
saledol   $39000 $8500    $15000&lt;BR /&gt;
&lt;BR /&gt;
saleratio&lt;BR /&gt;
type      jan    feb      mar&lt;BR /&gt;
saleratio   .8   .5       .6&lt;BR /&gt;
&lt;BR /&gt;
I would like to create an excel output something like&lt;BR /&gt;
&lt;BR /&gt;
summary&lt;BR /&gt;
--------&lt;BR /&gt;
type		jan		feb		Mar&lt;BR /&gt;
Sale		1000		500		800&lt;BR /&gt;
saledol         $39000          $8500          $15000&lt;BR /&gt;
saleratio       .8               .5             .6&lt;BR /&gt;
&lt;BR /&gt;
Any idea how to create a similar report. Thanks in advance for the help&lt;BR /&gt;
&lt;BR /&gt;
Suren</description>
      <pubDate>Wed, 20 Dec 2006 06:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-an-excel-report-with-each-row-has-different-format/m-p/1971#M866</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-12-20T06:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: creating an excel report with each row has different format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-an-excel-report-with-each-row-has-different-format/m-p/1972#M867</link>
      <description>I think that's a job for PROC TABULATE ; you can add ODS statements to recover the output in Excel, with ODS HTML (if you're using SAS v8 and/or Excel 2000) or ODS TAGSETS.EXCELXP (if you're using SAS 9 and Excel 2003 or more recent versions).&lt;BR /&gt;
Before using the Tabulate procedure, you must transpose your data a little, something like :&lt;BR /&gt;
&lt;BR /&gt;
DATA work.test ;&lt;BR /&gt;
	INPUT type $ jan feb mar ;&lt;BR /&gt;
CARDS ;&lt;BR /&gt;
sale 1000 500 800&lt;BR /&gt;
saledol 39000 8500 15000&lt;BR /&gt;
saleratio .8 .5 .6&lt;BR /&gt;
;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
PROC TRANSPOSE DATA = work.test&lt;BR /&gt;
		OUT = work.transposed &lt;BR /&gt;
               (RENAME = (_name_ = month)) ;&lt;BR /&gt;
	ID type ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
PROC TABULATE DATA = work.transposed ORDER = DATA ;&lt;BR /&gt;
	CLASS month ;&lt;BR /&gt;
	VAR sale saledol salerati ;&lt;BR /&gt;
	TABLE (sale * F=BEST12.&lt;BR /&gt;
		   saledol * F=DOLLAR12.&lt;BR /&gt;
		   salerati * F=PERCENT8.2),&lt;BR /&gt;
		   month=" " * SUM = " ";&lt;BR /&gt;
RUN ;</description>
      <pubDate>Wed, 20 Dec 2006 08:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-an-excel-report-with-each-row-has-different-format/m-p/1972#M867</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2006-12-20T08:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: creating an excel report with each row has different format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-an-excel-report-with-each-row-has-different-format/m-p/1973#M868</link>
      <description>Thanks a bunch Olivier. It worked&lt;BR /&gt;
&lt;BR /&gt;
Suren</description>
      <pubDate>Thu, 21 Dec 2006 04:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-an-excel-report-with-each-row-has-different-format/m-p/1973#M868</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-12-21T04:07:43Z</dc:date>
    </item>
  </channel>
</rss>

