<?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: How to keep leading zeros in an Excel file without affecting the other rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-leading-zeros-in-an-Excel-file-without-affecting-the/m-p/243697#M45351</link>
    <description>&lt;P&gt;There are a number of SAS notes and papers on this issue including these:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/38/105.html" target="_blank"&gt;http://support.sas.com/kb/38/105.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2016 06:17:29 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2016-01-15T06:17:29Z</dc:date>
    <item>
      <title>How to keep leading zeros in an Excel file without affecting the other rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-leading-zeros-in-an-Excel-file-without-affecting-the/m-p/243695#M45350</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Row&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Product_Code&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1234&lt;/P&gt;
&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01234&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to export this table into excel, maintaining the leading zeroes. I've used &lt;SPAN&gt;style(column)={tagattr='00000'} in the proc report code. Though it maintains the value of the product_code of row 2, it affects the product_code of row 1 as well. How can I prevent the other rows (with lengths less than 5) from having unnecessary leading zeros after export?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 05:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-leading-zeros-in-an-Excel-file-without-affecting-the/m-p/243695#M45350</guid>
      <dc:creator>angeliquec</dc:creator>
      <dc:date>2016-01-15T05:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep leading zeros in an Excel file without affecting the other rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-leading-zeros-in-an-Excel-file-without-affecting-the/m-p/243697#M45351</link>
      <description>&lt;P&gt;There are a number of SAS notes and papers on this issue including these:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/38/105.html" target="_blank"&gt;http://support.sas.com/kb/38/105.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 06:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-leading-zeros-in-an-Excel-file-without-affecting-the/m-p/243697#M45351</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-01-15T06:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep leading zeros in an Excel file without affecting the other rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-leading-zeros-in-an-Excel-file-without-affecting-the/m-p/243698#M45352</link>
      <description>&lt;P&gt;000000&lt;/P&gt;
&lt;P&gt;--&amp;gt;&lt;/P&gt;
&lt;P&gt;#####0&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 06:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-leading-zeros-in-an-Excel-file-without-affecting-the/m-p/243698#M45352</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-01-15T06:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep leading zeros in an Excel file without affecting the other rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-leading-zeros-in-an-Excel-file-without-affecting-the/m-p/243700#M45353</link>
      <description>&lt;P&gt;Thank you for the responses!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But&amp;nbsp;I found the code which also works with proc report -- {tagattr='Format:@'}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Maintain-leading-zeros-in-ExcelXP-output/td-p/84101" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Maintain-leading-zeros-in-ExcelXP-output/td-p/84101&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 07:13:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-leading-zeros-in-an-Excel-file-without-affecting-the/m-p/243700#M45353</guid>
      <dc:creator>angeliquec</dc:creator>
      <dc:date>2016-01-15T07:13:54Z</dc:date>
    </item>
  </channel>
</rss>

