<?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 a character to a numeric value? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779103#M39830</link>
    <description>What do you mean?&lt;BR /&gt;</description>
    <pubDate>Mon, 08 Nov 2021 12:07:38 GMT</pubDate>
    <dc:creator>Andalusia</dc:creator>
    <dc:date>2021-11-08T12:07:38Z</dc:date>
    <item>
      <title>How to convert a character to a numeric value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779098#M39828</link>
      <description>&lt;P&gt;I have the following dataset:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile datalines truncover;
input type $ quarter phase colors $ creation_date :yymmdd6.;
format creation_date yymmdd6.;
datalines;
K-11 201904 1 blue 20200101
K-11 202001 1 blue 20200101
K-11 202002 2 blue 20200101
K-11 202003 3 blue 20200101
K-11 202004 3 black 20200101
K-11 202101 1 blue 20200101
K-11 202102 2 blue 20200101
K-11 202103 3 blue 20200101
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want the column `colors` to be converted to a numeric value so I can use it as a measurement inside a crosstab in SAS Visual Analytics. How can this be done easily?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 11:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779098#M39828</guid>
      <dc:creator>Andalusia</dc:creator>
      <dc:date>2021-11-08T11:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a character to a numeric value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779099#M39829</link>
      <description>&lt;P&gt;Any numeric value?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 11:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779099#M39829</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-11-08T11:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a character to a numeric value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779103#M39830</link>
      <description>What do you mean?&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2021 12:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779103#M39830</guid>
      <dc:creator>Andalusia</dc:creator>
      <dc:date>2021-11-08T12:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a character to a numeric value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779105#M39832</link>
      <description>&lt;P&gt;I'm not very experienced with VA reporting but even so I feel you will need to explain a bit more why you can't use color as a categorical variable. Show us a "mock-up" of the report you want to create using your sample data.&lt;/P&gt;
&lt;P&gt;Do you just need counts by category "color"? Or what is this about?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 12:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779105#M39832</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-11-08T12:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a character to a numeric value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779154#M39833</link>
      <description>&lt;P&gt;"Blue" does not have an automatic numeric value associated with it. So you would have to provide exactly what number you expect for "blue" or "black" or any other color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also perhaps if you describe how the number for "blue" will be used we can give you some pointers.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 16:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-a-character-to-a-numeric-value/m-p/779154#M39833</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-11-08T16:26:18Z</dc:date>
    </item>
  </channel>
</rss>

