<?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: Character to Numeric Value Labels in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Character-to-Numeric-Value-Labels/m-p/761338#M240905</link>
    <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
 invalue read     
  "ABCDEF"=1
  "GHIJKL"=2
  'MNOPQR'=3
  'STUVWX'=4
  "YZ"    =5 ;
data T;  
  NUM=input('YZ',read.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;NUM=5&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Aug 2021 03:33:48 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-08-13T03:33:48Z</dc:date>
    <item>
      <title>Character to Numeric Value Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-to-Numeric-Value-Labels/m-p/761335#M240903</link>
      <description>&lt;P&gt;I am trying to figure out how to change character value labels to numeric values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;"ABCDEF"=1&lt;/P&gt;&lt;P&gt;"GHIJKL"=2&lt;/P&gt;&lt;P&gt;MNOPQR=3&lt;/P&gt;&lt;P&gt;STUVWX=4&lt;/P&gt;&lt;P&gt;"YZ"=5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to do it in the reverse (numeric to character) using proc format. I attempted to use the same method but maybe I am just using the incorrect syntax??? Suggestions please&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 03:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-to-Numeric-Value-Labels/m-p/761335#M240903</guid>
      <dc:creator>tjones156</dc:creator>
      <dc:date>2021-08-13T03:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Character to Numeric Value Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-to-Numeric-Value-Labels/m-p/761338#M240905</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
 invalue read     
  "ABCDEF"=1
  "GHIJKL"=2
  'MNOPQR'=3
  'STUVWX'=4
  "YZ"    =5 ;
data T;  
  NUM=input('YZ',read.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;NUM=5&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 03:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-to-Numeric-Value-Labels/m-p/761338#M240905</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-08-13T03:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Character to Numeric Value Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-to-Numeric-Value-Labels/m-p/761355#M240919</link>
      <description>&lt;P&gt;You may want to post code and log so that we can help to improve / fix what you already have.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 05:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-to-Numeric-Value-Labels/m-p/761355#M240919</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-08-13T05:39:51Z</dc:date>
    </item>
  </channel>
</rss>

