<?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 Add Leading Zero in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Add-Leading-Zero/m-p/14411#M2290</link>
    <description>Hello everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am reading in a numeric field (5 digit zip code).  It comes in an excel doc.  The leading zero is missing b/c excel doesn't keep the leading zero.  Is there a way for me to add the leading zero to the 5 digit zip code (numeric) in my sas dataset?&lt;BR /&gt;
&lt;BR /&gt;
I would like to keep it as a 'numeric' field.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any input!</description>
    <pubDate>Mon, 09 Nov 2009 22:58:17 GMT</pubDate>
    <dc:creator>KevinC_</dc:creator>
    <dc:date>2009-11-09T22:58:17Z</dc:date>
    <item>
      <title>Add Leading Zero</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Add-Leading-Zero/m-p/14411#M2290</link>
      <description>Hello everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am reading in a numeric field (5 digit zip code).  It comes in an excel doc.  The leading zero is missing b/c excel doesn't keep the leading zero.  Is there a way for me to add the leading zero to the 5 digit zip code (numeric) in my sas dataset?&lt;BR /&gt;
&lt;BR /&gt;
I would like to keep it as a 'numeric' field.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any input!</description>
      <pubDate>Mon, 09 Nov 2009 22:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Add-Leading-Zero/m-p/14411#M2290</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2009-11-09T22:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add Leading Zero</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Add-Leading-Zero/m-p/14412#M2291</link>
      <description>Hi:&lt;BR /&gt;
  SAS does not store leading zeroes internally. However, you can ALWAYS display leading zeroes, (in procedure output) by using the Z format.&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000205244.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000205244.htm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
[pre]&lt;BR /&gt;
format zipcode z5.;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 09 Nov 2009 23:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Add-Leading-Zero/m-p/14412#M2291</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-11-09T23:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add Leading Zero</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Add-Leading-Zero/m-p/14413#M2292</link>
      <description>Thank you so much, Cynthia!</description>
      <pubDate>Tue, 10 Nov 2009 14:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Add-Leading-Zero/m-p/14413#M2292</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2009-11-10T14:48:26Z</dc:date>
    </item>
  </channel>
</rss>

