<?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: Convert char with symbols to numeric in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731892#M28460</link>
    <description>&lt;P&gt;1 means "first part", and the 5. is an informat.&lt;/P&gt;
&lt;P&gt;I invite you to study the documentation of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0jshdjy2z9zdzn1h7k90u99lyq6.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;SCAN Function&lt;/A&gt;, the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p19en16vskd2vhn1vwmxpxnglxxs.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;INPUT Function&lt;/A&gt;, and the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=n14sqpf1cubqknn1vmkzkp1oph87.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;w.d Informat&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 12:57:23 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-04-07T12:57:23Z</dc:date>
    <item>
      <title>Convert char with symbols to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731883#M28454</link>
      <description>&lt;P&gt;I have a variable that looks as follows. It is in character format [Length - 9, Format - $9., informat - $9.] with * in some observations. I would like to know how I can convert this to numeric values?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;_09015C_1_VALUE
1.28
1.52 *
1.50 *
1.58 *
1.74 *
1.18
1.01
1.61 *&lt;/PRE&gt;
&lt;P&gt;I have tried these steps, but it didn't work&lt;/P&gt;
&lt;P&gt;*SC=_09015C_1_VALUE*1; &lt;BR /&gt;SC=input(_09015C_1_VALUE,9.0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:37:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731883#M28454</guid>
      <dc:creator>mantubiradar19</dc:creator>
      <dc:date>2021-04-07T12:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert char with symbols to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731887#M28456</link>
      <description>&lt;P&gt;Since there always seems to be a blank, use that to extract the numeric part before it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input _09015C_1_VALUE $9.;
numvalue = input(scan(_09015C_1_VALUE,1," "),5.);
datalines;
1.28
1.52 *
1.50 *
1.58 *
1.74 *
1.18
1.01
1.61 *
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731887#M28456</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-07T12:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert char with symbols to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731889#M28458</link>
      <description>Can you tell me what is the meaning of 1 and 5. in the code?&lt;BR /&gt;numvalue = input(scan(_09015C_1_VALUE,1," "),5.);&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731889#M28458</guid>
      <dc:creator>mantubiradar19</dc:creator>
      <dc:date>2021-04-07T12:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert char with symbols to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731892#M28460</link>
      <description>&lt;P&gt;1 means "first part", and the 5. is an informat.&lt;/P&gt;
&lt;P&gt;I invite you to study the documentation of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0jshdjy2z9zdzn1h7k90u99lyq6.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;SCAN Function&lt;/A&gt;, the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p19en16vskd2vhn1vwmxpxnglxxs.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;INPUT Function&lt;/A&gt;, and the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=n14sqpf1cubqknn1vmkzkp1oph87.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;w.d Informat&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731892#M28460</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-07T12:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert char with symbols to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731905#M28462</link>
      <description>Thank you so much Kurt!</description>
      <pubDate>Wed, 07 Apr 2021 13:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-char-with-symbols-to-numeric/m-p/731905#M28462</guid>
      <dc:creator>mantubiradar19</dc:creator>
      <dc:date>2021-04-07T13:42:58Z</dc:date>
    </item>
  </channel>
</rss>

