<?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 two remove 0 from first position in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476754#M122702</link>
    <description>&lt;P&gt;Are those columns of a SAS dataset ?&lt;/P&gt;
&lt;P&gt;If so, does this mean that values are stored as character variables ?&lt;/P&gt;
&lt;P&gt;Why not use a numeric format since your data is of numeric nature ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2018 12:06:08 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2018-07-10T12:06:08Z</dc:date>
    <item>
      <title>How two remove 0 from first position</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476746#M122696</link>
      <description>I have three columns were the data should be in 2 or three figures but the should not start with a 0, but i have a few values where the figure is of 2 digits but with a zero for example :&lt;BR /&gt;&lt;BR /&gt;DIBP&lt;BR /&gt;&lt;BR /&gt;82&lt;BR /&gt;86&lt;BR /&gt;85&lt;BR /&gt;084&lt;BR /&gt;85&lt;BR /&gt;86&lt;BR /&gt;083&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How do i remove the zero's</description>
      <pubDate>Tue, 10 Jul 2018 11:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476746#M122696</guid>
      <dc:creator>Shrij</dc:creator>
      <dc:date>2018-07-10T11:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How two remove 0 from first position</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476754#M122702</link>
      <description>&lt;P&gt;Are those columns of a SAS dataset ?&lt;/P&gt;
&lt;P&gt;If so, does this mean that values are stored as character variables ?&lt;/P&gt;
&lt;P&gt;Why not use a numeric format since your data is of numeric nature ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 12:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476754#M122702</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-07-10T12:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: How two remove 0 from first position</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476769#M122710</link>
      <description>&lt;P&gt;Use SUBSTR() function.&amp;nbsp; Either start from the 1st or the 2nd character depending on whether it starts with zero or not.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DIBP=substr(DIBP,1+DIBP=:'0');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jul 2018 12:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476769#M122710</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-10T12:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How two remove 0 from first position</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476774#M122714</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input DIBP $;
want=prxchange('s/^0+//',1,dibp);
cards;
82
86
85
084
85
86
083
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jul 2018 12:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476774#M122714</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-07-10T12:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How two remove 0 from first position</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476846#M122738</link>
      <description>I'm with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30622"&gt;@gamotte&lt;/a&gt;, the type of your data is more important. Numeric variables do not have a leading 0 by default, so I'm guessing it's character. If that's the case and you want to do any math with these values you'll also need a type conversion and if you're doing that you can avoid dealing with the leading 0 at all.</description>
      <pubDate>Tue, 10 Jul 2018 15:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-two-remove-0-from-first-position/m-p/476846#M122738</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-10T15:15:18Z</dc:date>
    </item>
  </channel>
</rss>

