<?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 Converting numerical variable to character variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Converting-numerical-variable-to-character-variable/m-p/513628#M2560</link>
    <description>&lt;P&gt;Hello, I have a dataset "flights" with a variable flight which is numeric.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2018-11-16 at 2.30.25 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24975iF60261AE7550DF81/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2018-11-16 at 2.30.25 AM.png" alt="Screenshot 2018-11-16 at 2.30.25 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to convert this to a character variable. &amp;nbsp;I used the code &amp;nbsp;with put ( ) function but nothing happens. I have also tried using a different name for the new variable but it does not help. Can someone please help me out. I am using SAS University Edition.&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data flights_1;
set flights;
flight_c = put (flight, 8.);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data flights_1;
set flights;
flight = put (flight, 8.);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class="page"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 15 Nov 2018 21:22:03 GMT</pubDate>
    <dc:creator>aboral</dc:creator>
    <dc:date>2018-11-15T21:22:03Z</dc:date>
    <item>
      <title>Converting numerical variable to character variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-numerical-variable-to-character-variable/m-p/513628#M2560</link>
      <description>&lt;P&gt;Hello, I have a dataset "flights" with a variable flight which is numeric.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2018-11-16 at 2.30.25 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24975iF60261AE7550DF81/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2018-11-16 at 2.30.25 AM.png" alt="Screenshot 2018-11-16 at 2.30.25 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to convert this to a character variable. &amp;nbsp;I used the code &amp;nbsp;with put ( ) function but nothing happens. I have also tried using a different name for the new variable but it does not help. Can someone please help me out. I am using SAS University Edition.&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data flights_1;
set flights;
flight_c = put (flight, 8.);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data flights_1;
set flights;
flight = put (flight, 8.);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class="page"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-numerical-variable-to-character-variable/m-p/513628#M2560</guid>
      <dc:creator>aboral</dc:creator>
      <dc:date>2018-11-15T21:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting numerical variable to character variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-numerical-variable-to-character-variable/m-p/513639#M2561</link>
      <description>&lt;P&gt;Let us know what happened with sample data, log, output etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and run a proc contents of your dataset and provide us that report too&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-numerical-variable-to-character-variable/m-p/513639#M2561</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-15T21:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting numerical variable to character variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-numerical-variable-to-character-variable/m-p/513647#M2562</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;Thank you for you time to look into this. While preparing a sample as you said I noticed flight_c has been already created as a character type. It was really stupid of me and I am embarrassed. I apologise for the inconvenience.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-numerical-variable-to-character-variable/m-p/513647#M2562</guid>
      <dc:creator>aboral</dc:creator>
      <dc:date>2018-11-15T21:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting numerical variable to character variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-numerical-variable-to-character-variable/m-p/513649#M2563</link>
      <description>&lt;P&gt;No worries &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-numerical-variable-to-character-variable/m-p/513649#M2563</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-15T21:31:09Z</dc:date>
    </item>
  </channel>
</rss>

