<?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 proc tabulate: keep leading zeros in excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14689#M3325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV id="gmBabelFish" style="border: 1px solid black; display: none; position: absolute; background-color: #a8ecff; padding: 2px; font-size: 12px; color: black; text-align: left; z-index: 100;"&gt;&lt;DIV style="border-bottom: 1px dotted black; padding-bottom: 2px; padding-top: 2px;"&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: pointer;" title="Close babel mousish"&gt;x&lt;/SPAN&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: pointer;" title="Configure languange"&gt;c&lt;/SPAN&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: default;" title="From English To Italian"&gt;en &amp;gt; it&lt;/SPAN&gt;&lt;IMG align="middle" src="https://communities.sas.com/" style="border: medium none; cursor: pointer;" title="click to translate" /&gt;&lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;thank you for the quick reply. the problem is the variable I'm tryng to export is character with all the leading zeros. &lt;/P&gt;&lt;P&gt;It is just the passage to excel that drop them down&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2011 15:36:03 GMT</pubDate>
    <dc:creator>ciro</dc:creator>
    <dc:date>2011-09-22T15:36:03Z</dc:date>
    <item>
      <title>proc tabulate: keep leading zeros in excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14687#M3323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV id="gmBabelFish" style="border: 1px solid black; display: none; position: absolute; background-color: #a8ecff; padding: 2px; font-size: 12px; color: black; text-align: left; z-index: 100;"&gt;&lt;DIV style="border-bottom: 1px dotted black; padding-bottom: 2px; padding-top: 2px;"&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: pointer;" title="Close babel mousish"&gt;x&lt;/SPAN&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: pointer;" title="Configure languange"&gt;c&lt;/SPAN&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: default;" title="From English To Italian"&gt;en &amp;gt; it&lt;/SPAN&gt;&lt;IMG align="middle" src="https://communities.sas.com/" style="border: medium none; cursor: pointer;" title="click to translate" /&gt;&lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I have to send some output to excel with a string with leading zeros through ods tagsets.excelxp.&lt;/P&gt;&lt;P&gt;In Proc print I just use &lt;/P&gt;&lt;P&gt;proc print data=x ;&lt;/P&gt;&lt;P&gt; var stringwithzeros /style=[tagattr="000000000000"];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;but I cannot find a way to do it in a proc freq or proc tabulate.&lt;/P&gt;&lt;P&gt;for instance how can I do it in code like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=x ;&lt;/P&gt;&lt;P&gt; class stringwithzeros ;&lt;/P&gt;&lt;P&gt;tables stringwithzeros all, colpctn;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much in advance&lt;/P&gt;&lt;P&gt;ciro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 15:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14687#M3323</guid>
      <dc:creator>ciro</dc:creator>
      <dc:date>2011-09-22T15:06:20Z</dc:date>
    </item>
    <item>
      <title>proc tabulate: keep leading zeros in excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14688#M3324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you accomplish what you want by adding a format statement using the z format?&amp;nbsp; e.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=sashelp.class ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylabel n='No.' all='Total' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class age sex ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format age z10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; table (age all)*f=3. , sex* pctn&amp;lt;age all&amp;gt;*f=4. ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 15:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14688#M3324</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-22T15:19:08Z</dc:date>
    </item>
    <item>
      <title>proc tabulate: keep leading zeros in excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14689#M3325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV id="gmBabelFish" style="border: 1px solid black; display: none; position: absolute; background-color: #a8ecff; padding: 2px; font-size: 12px; color: black; text-align: left; z-index: 100;"&gt;&lt;DIV style="border-bottom: 1px dotted black; padding-bottom: 2px; padding-top: 2px;"&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: pointer;" title="Close babel mousish"&gt;x&lt;/SPAN&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: pointer;" title="Configure languange"&gt;c&lt;/SPAN&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: default;" title="From English To Italian"&gt;en &amp;gt; it&lt;/SPAN&gt;&lt;IMG align="middle" src="https://communities.sas.com/" style="border: medium none; cursor: pointer;" title="click to translate" /&gt;&lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;thank you for the quick reply. the problem is the variable I'm tryng to export is character with all the leading zeros. &lt;/P&gt;&lt;P&gt;It is just the passage to excel that drop them down&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 15:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14689#M3325</guid>
      <dc:creator>ciro</dc:creator>
      <dc:date>2011-09-22T15:36:03Z</dc:date>
    </item>
    <item>
      <title>proc tabulate: keep leading zeros in excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14690#M3326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at: &lt;A href="http://support.sas.com/rnd/papers/sugi29/ExcelXML.pdf"&gt;http://support.sas.com/rnd/papers/sugi29/ExcelXML.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 15:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14690#M3326</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-22T15:40:09Z</dc:date>
    </item>
    <item>
      <title>proc tabulate: keep leading zeros in excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14691#M3327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV id="gmBabelFish" style="border: 1px solid black; display: none; position: absolute; background-color: #a8ecff; padding: 2px; font-size: 12px; color: black; text-align: left; z-index: 100;"&gt;&lt;DIV style="border-bottom: 1px dotted black; padding-bottom: 2px; padding-top: 2px;"&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: pointer;" title="Close babel mousish"&gt;x&lt;/SPAN&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: pointer;" title="Configure languange"&gt;c&lt;/SPAN&gt;&lt;SPAN class="gmBabelMousishToolBar" style="cursor: default;" title="From English To Italian"&gt;en &amp;gt; it&lt;/SPAN&gt;&lt;IMG align="middle" src="https://communities.sas.com/" style="border: medium none; cursor: pointer;" title="click to translate" /&gt;&lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;thank you again art for the reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the solution should be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=x ;&lt;/P&gt;&lt;P&gt; class stringwithzeros ;&lt;/P&gt;&lt;P&gt;classlev stringwithzeros /style=[tagattr="000000000000"];&lt;/P&gt;&lt;P&gt;tables stringwithzeros all, colpctn;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks to cinthia for the "colorful" post at&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/36683#36683"&gt;http://communities.sas.com/message/36683#36683&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 16:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-keep-leading-zeros-in-excel/m-p/14691#M3327</guid>
      <dc:creator>ciro</dc:creator>
      <dc:date>2011-09-22T16:11:17Z</dc:date>
    </item>
  </channel>
</rss>

