<?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 to convert the Character sting of numbers to numeric with spaces in it in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881322#M348240</link>
    <description>&lt;P&gt;Sorry for the confusion. I mean to say the format of the number like how &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/151645"&gt;@JOL&lt;/a&gt;&amp;nbsp; and&amp;nbsp;@ballardw explained in the solution.&lt;/P&gt;
&lt;P&gt;Thank you for asking more questions so that I learn&amp;nbsp; to be precise.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Jun 2023 13:59:31 GMT</pubDate>
    <dc:creator>SASuserlot</dc:creator>
    <dc:date>2023-06-18T13:59:31Z</dc:date>
    <item>
      <title>how to convert the Character sting of numbers to numeric with spaces in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881126#M348169</link>
      <description>&lt;P&gt;I have the following number in character format. How Can I change that into the numeric form, including spaces? Is that possible?&lt;/P&gt;
&lt;P&gt;'012932 01 001'&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 15:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881126#M348169</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2023-06-16T15:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character sting of numbers to numeric with spaces in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881131#M348171</link>
      <description>Numbers don't have spaces. You could rig a formula to have it displayed this way but be a number underneath. Why do you want it to be numeric?&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jun 2023 15:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881131#M348171</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-16T15:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character sting of numbers to numeric with spaces in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881138#M348174</link>
      <description>&lt;P&gt;In SAS numeric values can only contain digits 0-9, decimals and E for scientific notation.&amp;nbsp; But you can create a custom format to display the value in the pattern you want, but you must convert the original character to a number. See steps below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JOL_0-1686930915406.png" style="width: 777px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85061i9FA6B8FDA876D436/image-dimensions/777x168?v=v2" width="777" height="168" role="button" title="JOL_0-1686930915406.png" alt="JOL_0-1686930915406.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JOL_1-1686930974619.png" style="width: 441px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85062i65A9FF13159E328C/image-dimensions/441x92?v=v2" width="441" height="92" role="button" title="JOL_1-1686930974619.png" alt="JOL_1-1686930974619.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 15:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881138#M348174</guid>
      <dc:creator>JOL</dc:creator>
      <dc:date>2023-06-16T15:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character sting of numbers to numeric with spaces in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881143#M348175</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350312"&gt;@SASuserlot&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have the following number in character format. How Can I change that into the numeric form, including spaces? Is that possible?&lt;/P&gt;
&lt;P&gt;'012932 01 001'&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what number would that be?&lt;/P&gt;
&lt;P&gt;Looks like THREE numbers to me.&amp;nbsp; Or really TWO different numbers. 1 is written two different ways because of&amp;nbsp; different number of leading zeros.&amp;nbsp; A the first number (12,932) is also written with a leading zero.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 16:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881143#M348175</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-16T16:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character sting of numbers to numeric with spaces in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881153#M348178</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350312"&gt;@SASuserlot&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have the following number in character format. How Can I change that into the numeric form, including spaces? Is that possible?&lt;/P&gt;
&lt;P&gt;'012932 01 001'&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And just what numeric value would that have? Since spaces are not normally part of a number we need to know exactly what numeric value you expect that to have.&lt;/P&gt;
&lt;P&gt;What calculations are you going to sue with this numeric value? If the answer is "none" then don't bother, you are just adding complexity.&lt;/P&gt;
&lt;P&gt;You can create a custom format to display numeric values in that format but without details it may be insufficient. Example:&lt;/P&gt;
&lt;PRE&gt;proc format;
picture sss
low-high ='00000 00 009'
;
run;

data _null_;
  input x;
  put x= sss. ;
datalines;
1
12
123
1234
12345
123456
1234567
12345678
123456789
1234567890
;
&lt;/PRE&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;PRE&gt;proc format;
picture sss
low-high ='99999 99 999'
;
run;

data _null_;
  input x;
  put x= sss. ;
datalines;
1
12
123
1234
12345
123456
1234567
12345678
123456789
1234567890
;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The log shows some formatted values&amp;nbsp; but would likely need some details as to actual appearance&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 17:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881153#M348178</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-16T17:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character sting of numbers to numeric with spaces in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881322#M348240</link>
      <description>&lt;P&gt;Sorry for the confusion. I mean to say the format of the number like how &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/151645"&gt;@JOL&lt;/a&gt;&amp;nbsp; and&amp;nbsp;@ballardw explained in the solution.&lt;/P&gt;
&lt;P&gt;Thank you for asking more questions so that I learn&amp;nbsp; to be precise.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 13:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881322#M348240</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2023-06-18T13:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character sting of numbers to numeric with spaces in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881323#M348241</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/151645"&gt;@JOL&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;. This is what I am looking for. Thanks to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; for your questions and explanations as well.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 14:01:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-sting-of-numbers-to-numeric-with/m-p/881323#M348241</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2023-06-18T14:01:23Z</dc:date>
    </item>
  </channel>
</rss>

