<?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 can i get '0' as prefix. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-get-0-as-prefix/m-p/286169#M58653</link>
    <description>&lt;P&gt;Is your variable numeric or character?&lt;/P&gt;
&lt;P&gt;If numeric a format of Z5.1 might work but with an assigned decimal part ALL variables would show a decimal.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2016 15:40:50 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-07-21T15:40:50Z</dc:date>
    <item>
      <title>how can i get '0' as prefix.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-get-0-as-prefix/m-p/286157#M58649</link>
      <description>&lt;P&gt;how can i get prefix zero for the following?&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;23&lt;/P&gt;&lt;P&gt;123&lt;/P&gt;&lt;P&gt;22.1&lt;/P&gt;&lt;P&gt;is it possible for me get in following manner?&lt;/P&gt;&lt;P&gt;001&lt;/P&gt;&lt;P&gt;023&lt;/P&gt;&lt;P&gt;123&lt;/P&gt;&lt;P&gt;22.1 or ?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 15:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-i-get-0-as-prefix/m-p/286157#M58649</guid>
      <dc:creator>sanman</dc:creator>
      <dc:date>2016-07-21T15:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get '0' as prefix.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-get-0-as-prefix/m-p/286168#M58652</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Zw. format will give leading zeros, see sample code below. Whether you use just a format or convert the number to a char value depends on what you want to use it for.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  infile cards;
  input
    value
  ;

  value_c = put(value, z3.);
  format value z3.;
cards;
1
23
123
22.1
;

proc print data=have;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 15:40:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-i-get-0-as-prefix/m-p/286168#M58652</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-07-21T15:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get '0' as prefix.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-get-0-as-prefix/m-p/286169#M58653</link>
      <description>&lt;P&gt;Is your variable numeric or character?&lt;/P&gt;
&lt;P&gt;If numeric a format of Z5.1 might work but with an assigned decimal part ALL variables would show a decimal.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 15:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-i-get-0-as-prefix/m-p/286169#M58653</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-21T15:40:50Z</dc:date>
    </item>
  </channel>
</rss>

