<?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: Column Value Shows in Two Rows in Excel by Using ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Column-Value-Shows-in-Two-Rows-in-Excel-by-Using-ODS/m-p/52122#M6578</link>
    <description>Hi:&lt;BR /&gt;
  You didn't say which ODS destination you were using -- CSV, HTML or EXCELXP to get your procedure output into Excel. The fact is that ODS is not technically doing an "export" in the same way that PROC EXPORT does an "export". &lt;BR /&gt;
&lt;BR /&gt;
  ODS is creating an ASCII text file that Excel knows how to open and render -- it seems like a small point, but it often helps to look at the output file you're creating in Notepad to see what kind of markup tags are in the file before you open the file from ODS with Excel.&lt;BR /&gt;
&lt;BR /&gt;
  When I submit the program below, I do not observe the behavior that you describe when I open any of the 3 output files in Excel. I -do- have to drag the boundary for Column A to be bigger so that the full value of the NEWREG variable is visible.&lt;BR /&gt;
&lt;BR /&gt;
  If you don't get any ideas from the program below, then your best bet for help might be to contact Tech Support. They can look at your data and your program and help you come to some resolution.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
options nodate nonumber center;&lt;BR /&gt;
                          &lt;BR /&gt;
ods listing;&lt;BR /&gt;
                                   &lt;BR /&gt;
data shoes;&lt;BR /&gt;
  set sashelp.shoes;&lt;BR /&gt;
  if region in ('Asia', 'Pacific', 'Canada')&lt;BR /&gt;
     then newreg = 'Non Profitable Customers';&lt;BR /&gt;
  else newreg = 'Profitable Customers';&lt;BR /&gt;
  if product in ('Slipper', 'Boot');&lt;BR /&gt;
run;&lt;BR /&gt;
                                   &lt;BR /&gt;
ods tagsets.excelxp file='SpreadsheetML.xls' style=sasweb;&lt;BR /&gt;
ods msoffice2k file='MSO_HTML.xls' style=sasweb;&lt;BR /&gt;
ods csvall file='CSV_file.csv';&lt;BR /&gt;
proc tabulate data=shoes;&lt;BR /&gt;
  class newreg product;&lt;BR /&gt;
  var sales;&lt;BR /&gt;
  table newreg all,&lt;BR /&gt;
        product*sales*(n mean sum);&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Fri, 10 Oct 2008 02:39:51 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-10-10T02:39:51Z</dc:date>
    <item>
      <title>Column Value Shows in Two Rows in Excel by Using ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Column-Value-Shows-in-Two-Rows-in-Excel-by-Using-ODS/m-p/52121#M6577</link>
      <description>I have this issue only with Enterprise Guild 4. &lt;BR /&gt;
&lt;BR /&gt;
I used proc tabulate and created a table. One variable has two values: Non-Profitable Customers and Profitable Customer. When using ODS to export to the data to Excel, the value of "Non-Profitable Customers" will show as &lt;BR /&gt;
&lt;BR /&gt;
	&lt;I&gt;row1&lt;/I&gt;  Non-Profit	Profit Customer	Total&lt;BR /&gt;
	&lt;I&gt;row2&lt;/I&gt;  Customer	&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know how to get Non-Profit Customers in one row (one cell)? Thanks!</description>
      <pubDate>Tue, 07 Oct 2008 09:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Column-Value-Shows-in-Two-Rows-in-Excel-by-Using-ODS/m-p/52121#M6577</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-07T09:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Column Value Shows in Two Rows in Excel by Using ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Column-Value-Shows-in-Two-Rows-in-Excel-by-Using-ODS/m-p/52122#M6578</link>
      <description>Hi:&lt;BR /&gt;
  You didn't say which ODS destination you were using -- CSV, HTML or EXCELXP to get your procedure output into Excel. The fact is that ODS is not technically doing an "export" in the same way that PROC EXPORT does an "export". &lt;BR /&gt;
&lt;BR /&gt;
  ODS is creating an ASCII text file that Excel knows how to open and render -- it seems like a small point, but it often helps to look at the output file you're creating in Notepad to see what kind of markup tags are in the file before you open the file from ODS with Excel.&lt;BR /&gt;
&lt;BR /&gt;
  When I submit the program below, I do not observe the behavior that you describe when I open any of the 3 output files in Excel. I -do- have to drag the boundary for Column A to be bigger so that the full value of the NEWREG variable is visible.&lt;BR /&gt;
&lt;BR /&gt;
  If you don't get any ideas from the program below, then your best bet for help might be to contact Tech Support. They can look at your data and your program and help you come to some resolution.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
options nodate nonumber center;&lt;BR /&gt;
                          &lt;BR /&gt;
ods listing;&lt;BR /&gt;
                                   &lt;BR /&gt;
data shoes;&lt;BR /&gt;
  set sashelp.shoes;&lt;BR /&gt;
  if region in ('Asia', 'Pacific', 'Canada')&lt;BR /&gt;
     then newreg = 'Non Profitable Customers';&lt;BR /&gt;
  else newreg = 'Profitable Customers';&lt;BR /&gt;
  if product in ('Slipper', 'Boot');&lt;BR /&gt;
run;&lt;BR /&gt;
                                   &lt;BR /&gt;
ods tagsets.excelxp file='SpreadsheetML.xls' style=sasweb;&lt;BR /&gt;
ods msoffice2k file='MSO_HTML.xls' style=sasweb;&lt;BR /&gt;
ods csvall file='CSV_file.csv';&lt;BR /&gt;
proc tabulate data=shoes;&lt;BR /&gt;
  class newreg product;&lt;BR /&gt;
  var sales;&lt;BR /&gt;
  table newreg all,&lt;BR /&gt;
        product*sales*(n mean sum);&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 10 Oct 2008 02:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Column-Value-Shows-in-Two-Rows-in-Excel-by-Using-ODS/m-p/52122#M6578</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-10-10T02:39:51Z</dc:date>
    </item>
  </channel>
</rss>

