<?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 Specifying A Series of Character Codes - Need help in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Specifying-A-Series-of-Character-Codes-Need-help/m-p/94290#M708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS, there is the ability to speficiy that if a variable is within a range of numbers, that you can recode them i.e. if variable in (1 2 3 4 5) then new_variable = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if the same can be done with a character variable. I am analyzing data with ICD9 codes and not all the codes are numeric. I am specifically wanting to have a series of ICD9 codes from V277 to V277.2. &lt;/P&gt;&lt;P&gt;Is there a way in SAS to write that I want to identify records that contain an ICD9 code between V277 and V277.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for any help you can provide. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 21:01:03 GMT</pubDate>
    <dc:creator>HyunJee</dc:creator>
    <dc:date>2012-06-27T21:01:03Z</dc:date>
    <item>
      <title>Specifying A Series of Character Codes - Need help</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Specifying-A-Series-of-Character-Codes-Need-help/m-p/94290#M708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS, there is the ability to speficiy that if a variable is within a range of numbers, that you can recode them i.e. if variable in (1 2 3 4 5) then new_variable = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if the same can be done with a character variable. I am analyzing data with ICD9 codes and not all the codes are numeric. I am specifically wanting to have a series of ICD9 codes from V277 to V277.2. &lt;/P&gt;&lt;P&gt;Is there a way in SAS to write that I want to identify records that contain an ICD9 code between V277 and V277.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for any help you can provide. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 21:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Specifying-A-Series-of-Character-Codes-Need-help/m-p/94290#M708</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2012-06-27T21:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying A Series of Character Codes - Need help</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Specifying-A-Series-of-Character-Codes-Need-help/m-p/94291#M709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; if "V277" le yourcodevariable le "V277.2"&amp;nbsp; MAY work. It may not if there are codes such as V277.12 that you do not want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 21:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Specifying-A-Series-of-Character-Codes-Need-help/m-p/94291#M709</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-06-27T21:32:31Z</dc:date>
    </item>
  </channel>
</rss>

