<?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 Need interchangeable character for in: statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-interchangeable-character-for-in-statement/m-p/704006#M215776</link>
    <description>&lt;P&gt;I am creating a series of if/then statements to assign a large number of various ICD10 codes to a few specific groups in a new variable. This has been going fine until I noticed I have hundreds of individual values to put in my "in: ('a','b')" parentheses for one particular value of this new variable. These values all end in 1 of 6 digits, but go from the low 300's up through the 800's. example:&lt;/P&gt;&lt;P&gt;V324,V325,V326,V327,V328,V329&lt;/P&gt;&lt;P&gt;V334,V335,V336,V337,V338,V339&lt;/P&gt;&lt;P&gt;V344,V345,V346,V347,V348,V349&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, is there some character I can insert to represent any value? So that I could put something like "in: ('V3*4', 'V3*5','V3*6',)" etc? Or some way to not manually enter these hundreds of codes? I can't just use 'V32' because these values don't include V320, V321, etc. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 01:17:01 GMT</pubDate>
    <dc:creator>cloverhorizon</dc:creator>
    <dc:date>2020-12-07T01:17:01Z</dc:date>
    <item>
      <title>Need interchangeable character for in: statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-interchangeable-character-for-in-statement/m-p/704006#M215776</link>
      <description>&lt;P&gt;I am creating a series of if/then statements to assign a large number of various ICD10 codes to a few specific groups in a new variable. This has been going fine until I noticed I have hundreds of individual values to put in my "in: ('a','b')" parentheses for one particular value of this new variable. These values all end in 1 of 6 digits, but go from the low 300's up through the 800's. example:&lt;/P&gt;&lt;P&gt;V324,V325,V326,V327,V328,V329&lt;/P&gt;&lt;P&gt;V334,V335,V336,V337,V338,V339&lt;/P&gt;&lt;P&gt;V344,V345,V346,V347,V348,V349&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, is there some character I can insert to represent any value? So that I could put something like "in: ('V3*4', 'V3*5','V3*6',)" etc? Or some way to not manually enter these hundreds of codes? I can't just use 'V32' because these values don't include V320, V321, etc. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 01:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-interchangeable-character-for-in-statement/m-p/704006#M215776</guid>
      <dc:creator>cloverhorizon</dc:creator>
      <dc:date>2020-12-07T01:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need interchangeable character for in: statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-interchangeable-character-for-in-statement/m-p/704061#M215800</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; something like "in: ('V3*4', 'V3*5','V3*6',)"&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if prxmatch('/\AV3\d[456]\Z/',trim(VAR)) then C=1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;\A&amp;nbsp; = start of string&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;V3&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;\d = digit&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;4 or 5 or 6&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;\Z = end of string&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-interchangeable-character-for-in-statement/m-p/704061#M215800</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-12-07T06:45:31Z</dc:date>
    </item>
  </channel>
</rss>

