<?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 Removing a 'class' of data within a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-a-class-of-data-within-a-variable/m-p/320044#M70409</link>
    <description>&lt;P&gt;I want to sub-set a class of data within the variable 'Block'. Essentially, i want SAS to ignore 'D' within my 'Block' variable, while still analyzing 'Block's 'A', 'B, and 'C'.&lt;/P&gt;&lt;P&gt;My code goes something like this ;&lt;/P&gt;&lt;P&gt;Data All Events;&lt;/P&gt;&lt;P&gt;if Phase=1;&lt;/P&gt;&lt;P&gt;if Gas='Nitrous Oxide';&lt;/P&gt;&lt;P&gt;if Block='A','B','C';&lt;/P&gt;&lt;P&gt;etc.......&lt;/P&gt;&lt;P&gt;but i get an error in the Log saying "Expecting arithmetic operator...symbol is not recognized and will be ignored";&lt;/P&gt;&lt;P&gt;Please advise on how to correct this.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2016 21:29:02 GMT</pubDate>
    <dc:creator>AaronJ</dc:creator>
    <dc:date>2016-12-19T21:29:02Z</dc:date>
    <item>
      <title>Removing a 'class' of data within a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-a-class-of-data-within-a-variable/m-p/320044#M70409</link>
      <description>&lt;P&gt;I want to sub-set a class of data within the variable 'Block'. Essentially, i want SAS to ignore 'D' within my 'Block' variable, while still analyzing 'Block's 'A', 'B, and 'C'.&lt;/P&gt;&lt;P&gt;My code goes something like this ;&lt;/P&gt;&lt;P&gt;Data All Events;&lt;/P&gt;&lt;P&gt;if Phase=1;&lt;/P&gt;&lt;P&gt;if Gas='Nitrous Oxide';&lt;/P&gt;&lt;P&gt;if Block='A','B','C';&lt;/P&gt;&lt;P&gt;etc.......&lt;/P&gt;&lt;P&gt;but i get an error in the Log saying "Expecting arithmetic operator...symbol is not recognized and will be ignored";&lt;/P&gt;&lt;P&gt;Please advise on how to correct this.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 21:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-a-class-of-data-within-a-variable/m-p/320044#M70409</guid>
      <dc:creator>AaronJ</dc:creator>
      <dc:date>2016-12-19T21:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a 'class' of data within a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-a-class-of-data-within-a-variable/m-p/320046#M70411</link>
      <description>&lt;P&gt;Post your code with the error please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the snippet posted:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if Block='A','B','C';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is invalid SAS code. You need to use IN as well as brackets instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if Block in ('A','B','C');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Dec 2016 21:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-a-class-of-data-within-a-variable/m-p/320046#M70411</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-19T21:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a 'class' of data within a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-a-class-of-data-within-a-variable/m-p/320047#M70412</link>
      <description>perfect</description>
      <pubDate>Mon, 19 Dec 2016 21:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-a-class-of-data-within-a-variable/m-p/320047#M70412</guid>
      <dc:creator>AaronJ</dc:creator>
      <dc:date>2016-12-19T21:35:45Z</dc:date>
    </item>
  </channel>
</rss>

