<?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 Format Issue when generating dataset into Excel in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Format-Issue-when-generating-dataset-into-Excel/m-p/62340#M858</link>
    <description>Hi,&lt;BR /&gt;
I have a question about generating a customer ID to Excel. Please take a look of the following example.&lt;BR /&gt;
&lt;BR /&gt;
Data Customer;&lt;BR /&gt;
Input Cust_ID $5. Deposite;&lt;BR /&gt;
Cards;&lt;BR /&gt;
00155 200&lt;BR /&gt;
00166 400&lt;BR /&gt;
;&lt;BR /&gt;
Ods listing close;&lt;BR /&gt;
Ods html body = “D:\MyFolder\CustList.xls”;&lt;BR /&gt;
Proc print data = Customer noobs; Run;&lt;BR /&gt;
Ods html close;&lt;BR /&gt;
Ods listing;&lt;BR /&gt;
&lt;BR /&gt;
As shown in Excel report, the Cust_ID becomes only 3 digits number (e.g. 155, 166…).&lt;BR /&gt;
How can we avoid this format issue when exporting the dataset into Excel?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your answer.&lt;BR /&gt;
BNG</description>
    <pubDate>Thu, 05 May 2011 12:09:40 GMT</pubDate>
    <dc:creator>BNG</dc:creator>
    <dc:date>2011-05-05T12:09:40Z</dc:date>
    <item>
      <title>Format Issue when generating dataset into Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Format-Issue-when-generating-dataset-into-Excel/m-p/62340#M858</link>
      <description>Hi,&lt;BR /&gt;
I have a question about generating a customer ID to Excel. Please take a look of the following example.&lt;BR /&gt;
&lt;BR /&gt;
Data Customer;&lt;BR /&gt;
Input Cust_ID $5. Deposite;&lt;BR /&gt;
Cards;&lt;BR /&gt;
00155 200&lt;BR /&gt;
00166 400&lt;BR /&gt;
;&lt;BR /&gt;
Ods listing close;&lt;BR /&gt;
Ods html body = “D:\MyFolder\CustList.xls”;&lt;BR /&gt;
Proc print data = Customer noobs; Run;&lt;BR /&gt;
Ods html close;&lt;BR /&gt;
Ods listing;&lt;BR /&gt;
&lt;BR /&gt;
As shown in Excel report, the Cust_ID becomes only 3 digits number (e.g. 155, 166…).&lt;BR /&gt;
How can we avoid this format issue when exporting the dataset into Excel?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your answer.&lt;BR /&gt;
BNG</description>
      <pubDate>Thu, 05 May 2011 12:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Format-Issue-when-generating-dataset-into-Excel/m-p/62340#M858</guid>
      <dc:creator>BNG</dc:creator>
      <dc:date>2011-05-05T12:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Format Issue when generating dataset into Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Format-Issue-when-generating-dataset-into-Excel/m-p/62341#M859</link>
      <description>Hi:&lt;BR /&gt;
  Microsoft Excel treats numbers with a General format, once it gets them. Since you are using ODS HTML, my recommendation would be to:&lt;BR /&gt;
&lt;BR /&gt;
1) switch to ODS MSOFFICE2K -- which is Microsoft "flavor" of HTML and&lt;BR /&gt;
2) use the HTMLSTYLE attribute with an mso-number-format to tell Microsoft to use a leading zero number format.&lt;BR /&gt;
&lt;BR /&gt;
  There are examples of this method in my recent SAS Global Forum paper:&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings11/266-2011.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings11/266-2011.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The leading zero example is on pages 6 and 7. You will want the HTMLSTYLE example (not the TAGATTR example -- TAGATTR is for use with TAGSETS.EXCELXP).&lt;BR /&gt;
     &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 05 May 2011 17:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Format-Issue-when-generating-dataset-into-Excel/m-p/62341#M859</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-05-05T17:17:55Z</dc:date>
    </item>
  </channel>
</rss>

