<?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 Convert variable from character to numeric in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/543440#M7709</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to convert a variable (External_nbr, this is a column variable with unique numbers of customers) from numeric to text, sas gives me this message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;put(External_nbr, 32);&lt;BR /&gt;___&lt;BR /&gt;180&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 08:50:46 GMT</pubDate>
    <dc:creator>sihlek</dc:creator>
    <dc:date>2019-03-15T08:50:46Z</dc:date>
    <item>
      <title>Convert variable from character to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/543440#M7709</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to convert a variable (External_nbr, this is a column variable with unique numbers of customers) from numeric to text, sas gives me this message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;put(External_nbr, 32);&lt;BR /&gt;___&lt;BR /&gt;180&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 08:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/543440#M7709</guid>
      <dc:creator>sihlek</dc:creator>
      <dc:date>2019-03-15T08:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable from character to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/543445#M7711</link>
      <description>&lt;P&gt;Perhaps a simple dot after 32 may do the magic. But you have to assign it to a new character variable suitably sized.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 09:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/543445#M7711</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2019-03-15T09:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable from character to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/543495#M7723</link>
      <description>&lt;P&gt;When steps fail, please post the &lt;EM&gt;whole&lt;/EM&gt; log of such a step by using the {i} button (to preserve content, formatting, and positioning).&lt;/P&gt;
&lt;P&gt;What you most likely want to do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;External_nbr_new = put(External_nbr,32.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You have to create a new variable, as you can't change the type of an existing variable.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 11:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/543495#M7723</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-15T11:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable from character to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/544473#M7857</link>
      <description>&lt;P&gt;Thank you for the help:)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 07:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/544473#M7857</guid>
      <dc:creator>sihlek</dc:creator>
      <dc:date>2019-03-20T07:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable from character to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/544474#M7858</link>
      <description>&lt;P&gt;Thank you:)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 07:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-variable-from-character-to-numeric/m-p/544474#M7858</guid>
      <dc:creator>sihlek</dc:creator>
      <dc:date>2019-03-20T07:56:21Z</dc:date>
    </item>
  </channel>
</rss>

