<?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 convert numeric id to character id with trailing zeros? I need 6 digit character. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680666#M205758</link>
    <description>&lt;PRE&gt;data have;
input x;
want=put(x,z6.);
cards;
12
126
145698
;&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Sep 2020 11:44:20 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-09-01T11:44:20Z</dc:date>
    <item>
      <title>how can i convert numeric id to character id with leading zeros? I need 6 digit character.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680592#M205710</link>
      <description>&lt;P&gt;I have numeric values like:&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;126&lt;/P&gt;&lt;P&gt;145698&lt;/P&gt;&lt;P&gt;I want to convert them into 6 digit character with trailing zeros. The above numbers should appear as:&lt;/P&gt;&lt;P&gt;000012&lt;/P&gt;&lt;P&gt;000126&lt;/P&gt;&lt;P&gt;145698&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 01:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680592#M205710</guid>
      <dc:creator>bhandara</dc:creator>
      <dc:date>2020-09-03T01:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: how can i convert numeric id to character id with trailing zeros? I need 6 digit character.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680593#M205711</link>
      <description>&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;new;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;old;&lt;/P&gt;&lt;P&gt;zip5_char15 = put(gvkey,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;$6.);&lt;/P&gt;&lt;P&gt;length&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;zipx $&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;zipx = left(zip5_char15);&lt;/P&gt;&lt;P&gt;gvkey_char = substr(("00000"||zipx),length(zipx),&lt;STRONG&gt;6&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;drop&amp;nbsp; zip5_char15 zipx;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 01:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680593#M205711</guid>
      <dc:creator>nazmul</dc:creator>
      <dc:date>2020-09-01T01:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: how can i convert numeric id to character id with trailing zeros? I need 6 digit character.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680594#M205712</link>
      <description>&lt;P&gt;Thanks. This was very quick. I appreciate it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 01:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680594#M205712</guid>
      <dc:creator>bhandara</dc:creator>
      <dc:date>2020-09-01T01:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: how can i convert numeric id to character id with trailing zeros? I need 6 digit character.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680666#M205758</link>
      <description>&lt;PRE&gt;data have;
input x;
want=put(x,z6.);
cards;
12
126
145698
;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Sep 2020 11:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680666#M205758</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-01T11:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: how can i convert numeric id to character id with trailing zeros? I need 6 digit character.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680672#M205760</link>
      <description>The question is about how to get LEADING zeros not TRAILING zeros.  Edit your question title if possible.</description>
      <pubDate>Tue, 01 Sep 2020 11:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/680672#M205760</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-09-01T11:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: how can i convert numeric id to character id with trailing zeros? I need 6 digit character.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/681199#M206024</link>
      <description>&lt;P&gt;Thanks. I just corrected it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 01:33:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-i-convert-numeric-id-to-character-id-with-leading-zeros/m-p/681199#M206024</guid>
      <dc:creator>bhandara</dc:creator>
      <dc:date>2020-09-03T01:33:09Z</dc:date>
    </item>
  </channel>
</rss>

