<?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 make it to 5digits with zeros in front in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/make-it-to-5digits-with-zeros-in-front/m-p/839228#M36335</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a character variables and I want to make it to 5digits by filling with zero at the starting.&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;11&lt;/P&gt;&lt;P&gt;21&lt;/P&gt;&lt;P&gt;31&lt;/P&gt;&lt;P&gt;451&lt;/P&gt;&lt;P&gt;5671&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want:&lt;/P&gt;&lt;P&gt;00011&lt;/P&gt;&lt;P&gt;00021&lt;/P&gt;&lt;P&gt;00031&lt;/P&gt;&lt;P&gt;00451&lt;/P&gt;&lt;P&gt;05671&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 16:21:39 GMT</pubDate>
    <dc:creator>Smitha9</dc:creator>
    <dc:date>2022-10-18T16:21:39Z</dc:date>
    <item>
      <title>make it to 5digits with zeros in front</title>
      <link>https://communities.sas.com/t5/New-SAS-User/make-it-to-5digits-with-zeros-in-front/m-p/839228#M36335</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a character variables and I want to make it to 5digits by filling with zero at the starting.&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;11&lt;/P&gt;&lt;P&gt;21&lt;/P&gt;&lt;P&gt;31&lt;/P&gt;&lt;P&gt;451&lt;/P&gt;&lt;P&gt;5671&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want:&lt;/P&gt;&lt;P&gt;00011&lt;/P&gt;&lt;P&gt;00021&lt;/P&gt;&lt;P&gt;00031&lt;/P&gt;&lt;P&gt;00451&lt;/P&gt;&lt;P&gt;05671&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 16:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/make-it-to-5digits-with-zeros-in-front/m-p/839228#M36335</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2022-10-18T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: make it to 5digits with zeros in front</title>
      <link>https://communities.sas.com/t5/New-SAS-User/make-it-to-5digits-with-zeros-in-front/m-p/839230#M36336</link>
      <description>&lt;P&gt;This should do it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set have;
   id = put(input(id, 5.), z5.);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Oct 2022 16:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/make-it-to-5digits-with-zeros-in-front/m-p/839230#M36336</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-10-18T16:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: make it to 5digits with zeros in front</title>
      <link>https://communities.sas.com/t5/New-SAS-User/make-it-to-5digits-with-zeros-in-front/m-p/839233#M36337</link>
      <description>&lt;P&gt;What is the current defined Length of the variable? If it is not at least 5 then you will not have enough character spaces to place 5 characters in it.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 16:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/make-it-to-5digits-with-zeros-in-front/m-p/839233#M36337</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-18T16:37:27Z</dc:date>
    </item>
  </channel>
</rss>

