<?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 Export SAS data to Excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36819#M5252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Try this. BTW you would have found many postings on this topic if you had searched the forum &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; account / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;display&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal; font-family: 'Courier New'; background-color: white;"&gt;$char19.&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=[tagattr=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'format:@'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 20:39:51 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2011-10-27T20:39:51Z</dc:date>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36818#M5251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use tagset to generate a report and convert the report to an Excel spreadsheet. But there is a character variable, which is 19 digit. When the report convert to excel, it is automatically set the last 4 digit to 0000. Anybody know how to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt;Sample data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt;country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; account #&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt;&lt;SPAN style="color: #333333; font-family: Arial;"&gt;US&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Arial;"&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234567891234567899&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Courier New;"&gt;UK&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Courier New;"&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9876543219876543219&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;wrong output in Excel:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt;country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; account #&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt;&lt;SPAN style="color: #333333; font-family: Arial;"&gt;US&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Arial;"&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123456789123456&lt;SPAN style="color: #ff0000;"&gt;0000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;UK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 987654321987654&lt;SPAN style="color: #ff0000;"&gt;0000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp path='/path/' file="myreport.xls";&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp options(sheet_interval='bygroup');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=mydata&lt;/P&gt;&lt;P&gt;by country;&lt;/P&gt;&lt;P&gt;column account#;&lt;/P&gt;&lt;P&gt;define account#/display 'Account #' f=$char19. style(column)={tagattr="###################"};&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 20:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36818#M5251</guid>
      <dc:creator>c8826024</dc:creator>
      <dc:date>2011-10-27T20:18:33Z</dc:date>
    </item>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36819#M5252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Try this. BTW you would have found many postings on this topic if you had searched the forum &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; account / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;display&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal; font-family: 'Courier New'; background-color: white;"&gt;$char19.&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=[tagattr=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'format:@'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 20:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36819#M5252</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2011-10-27T20:39:51Z</dc:date>
    </item>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36820#M5253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks. Got it.&lt;/P&gt;&lt;P&gt;I was figuring somebody might already post the solution somewhere. But I was in a hurry. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 20:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36820#M5253</guid>
      <dc:creator>c8826024</dc:creator>
      <dc:date>2011-10-27T20:50:28Z</dc:date>
    </item>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36821#M5254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; It was working in Proc Report but NOT in proc print. anybody know why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=mydata noobs;&lt;/P&gt;&lt;P&gt;var cust_id / style={background=lightyellow font_size=1.5 tagattr='format:@'};&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 15:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36821#M5254</guid>
      <dc:creator>c8826024</dc:creator>
      <dc:date>2012-02-24T15:05:31Z</dc:date>
    </item>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36822#M5255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Your PROC PRINT syntax is wrong. It should be&lt;/P&gt;&lt;P&gt;var cust_id / style(data)={....};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If that doesn't work, then you should open a track with Tech Support. Assuming that you are using TAGSETS.EXCELXP and TAGATTR for both PROC PRINT and PROC REPORT steps, I would expect that both should work, when the syntax is correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC REPORT needs style(column) and &lt;/P&gt;&lt;P&gt;PROC PRINT needs style(data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 15:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36822#M5255</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-02-24T15:11:26Z</dc:date>
    </item>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36823#M5256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Still not working. I will file a ticket to Sas tech support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 21:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36823#M5256</guid>
      <dc:creator>c8826024</dc:creator>
      <dc:date>2012-02-24T21:01:35Z</dc:date>
    </item>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36824#M5257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you define an ODS destination?&amp;nbsp; Seems to be working for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf file='c:\art\testprint.pdf';&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class noobs;&lt;/P&gt;&lt;P&gt; var name / style(data)=&lt;/P&gt;&lt;P&gt;&amp;nbsp; {background=lightyellow font_size=2.5 tagattr='format:@'};&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 21:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36824#M5257</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-24T21:09:21Z</dc:date>
    </item>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36825#M5258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP path='/sas/mydirectory/' file="myreport.xls";&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP options(sheet_interval='bygroup' sheet_label='' suppress_bylines='yes' autofit_height='yes'); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 21:14:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36825#M5258</guid>
      <dc:creator>c8826024</dc:creator>
      <dc:date>2012-02-24T21:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36826#M5259</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 tried a variation of Art's code and it worked for me, too. See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc sort data=sashelp.class out=class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;by age;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where age le 13;&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;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.ExcelXP path='c:\temp\' (url=none) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sasweb file="myreport.xls";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.ExcelXP options(sheet_interval='bygroup' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet_label='' suppress_bylines='yes' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; autofit_height='yes'); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=class noobs;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;by age;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var name age/ style(data)=&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; {background=lightyellow font_size=10pt tagattr='format:@'};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var height weight sex /&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(data)={background=cyan};&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;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And AGE is treated as a character (even though it's a number -- you can tell by the green triangle in each cell). Plus, the formatting got applied - -as far as colors for the cells that I specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11581i91E56699248142AB/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="yellow_background.jpg" title="yellow_background.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 21:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36826#M5259</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-02-24T21:29:15Z</dc:date>
    </item>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36827#M5260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Will different SAS version making a difference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is working fine when I run it on 9.2 (TS2M0) but is NOT working when I run it on 9.1.3 SP 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 19:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36827#M5260</guid>
      <dc:creator>c8826024</dc:creator>
      <dc:date>2012-02-27T19:36:03Z</dc:date>
    </item>
    <item>
      <title>Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36828#M5261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I think it is the problem of version 9.1. I upgrade my software to 9.2 and the problem is gone even without style(data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 13:52:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36828#M5261</guid>
      <dc:creator>c8826024</dc:creator>
      <dc:date>2012-02-28T13:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS data to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36829#M5262</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; More likely it was the fact that the default tagset template for ExcelXP was different in 9.1.3 versus 9.2 -- and what you tried to do worked better with the 9.2 template code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Using the report location for PROC PRINT and PROC REPORT ( such as style(data) or style(header) or style(column) is considered a best practice) -- since each REPORT and PRINT statement allows you to to alter the header cells and the data cells, it is better to be explicit. For example, it's probably inappropriate to apply a numeric Microsoft format to the column header and equally inappropriate to use the header cell colors for the data cells. So something like this is recommended -- no matter what destination you use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var age height / style(data)={font_size=10pt just=l}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={background=pink just=c};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;DEFINE AGE / style(column)={font_size=10pt just=l} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={background=purple just=c};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 14:15:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-SAS-data-to-Excel/m-p/36829#M5262</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-02-28T14:15:33Z</dc:date>
    </item>
  </channel>
</rss>

