<?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 numeric variable to character type in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662908#M197871</link>
    <description>*It works this time.*&lt;BR /&gt;&lt;BR /&gt;*Really appreciate your help !*&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Jun 2020 06:30:11 GMT</pubDate>
    <dc:creator>Siennayun</dc:creator>
    <dc:date>2020-06-18T06:30:11Z</dc:date>
    <item>
      <title>Convert numeric variable to character type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662637#M197862</link>
      <description>How can I&amp;nbsp;convert a numeric variable to the character type for variable "Cylinders".&lt;BR /&gt;&lt;BR /&gt;I have tried to use put(Cylinders , 6.); But it doesn't work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Original dataset as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data carA;&lt;BR /&gt;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;&lt;BR /&gt;keep MPG_City Cylinders Weight;&lt;BR /&gt;&lt;BR /&gt;where Cylinders in (4,6,8);&lt;BR /&gt;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 18 Jun 2020 05:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662637#M197862</guid>
      <dc:creator>Siennayun</dc:creator>
      <dc:date>2020-06-18T05:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric variable to character type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662682#M197863</link>
      <description>&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;new_cylinders=put(Cylinders , best.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jun 2020 05:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662682#M197863</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-06-18T05:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric variable to character type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662861#M197867</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;A=put(Cylinders , 6.); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is the correct syntax.&lt;/P&gt;
&lt;P&gt;Of course, if you attempt to change the variable type, this will not work.&lt;/P&gt;
&lt;P&gt;As you didn't supply any code or log, the help on offer is very limited.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 06:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662861#M197867</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-18T06:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric variable to character type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662862#M197868</link>
      <description>Hi, I've tried this. It doesn't work either.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jun 2020 06:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662862#M197868</guid>
      <dc:creator>Siennayun</dc:creator>
      <dc:date>2020-06-18T06:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric variable to character type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662907#M197870</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/332532"&gt;@Siennayun&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi, I've tried this. It doesn't work either.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The phrase "doesn't work" can mean anything, so it is impossible to suggest something helpful. Please explain what you got a result and why that does not meet your expectation.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 06:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662907#M197870</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-06-18T06:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric variable to character type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662908#M197871</link>
      <description>*It works this time.*&lt;BR /&gt;&lt;BR /&gt;*Really appreciate your help !*&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jun 2020 06:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-variable-to-character-type/m-p/662908#M197871</guid>
      <dc:creator>Siennayun</dc:creator>
      <dc:date>2020-06-18T06:30:11Z</dc:date>
    </item>
  </channel>
</rss>

