<?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 change the value of single cells (of a column) based on some conditions (of other columns in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-change-the-value-of-single-cells-of-a-column-based-on/m-p/377476#M24558</link>
    <description>&lt;P&gt;Yes, it's quite easy in EG. Create a new query, and create an advanced expression. In the advanced expression, the CASE function will let you implement "if then else" type logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 17:30:32 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2017-07-19T17:30:32Z</dc:date>
    <item>
      <title>How to change the value of single cells (of a column) based on some conditions (of other columns)?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-change-the-value-of-single-cells-of-a-column-based-on/m-p/377403#M24552</link>
      <description>&lt;P&gt;Say I have the following data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var1 &amp;nbsp; Var2 &amp;nbsp; Var3&lt;/P&gt;&lt;P&gt;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;1&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;0&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;BR /&gt;0&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I change values in Var3 to "-999" if Var1=1 and Var2=1?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-change-the-value-of-single-cells-of-a-column-based-on/m-p/377403#M24552</guid>
      <dc:creator>KubiK888</dc:creator>
      <dc:date>2017-07-19T15:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the value of single cells (of a column) based on some conditions (of other columns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-change-the-value-of-single-cells-of-a-column-based-on/m-p/377410#M24553</link>
      <description>&lt;P&gt;You would want to use if-else conditions. Note that the -999 will be numeric since I assume that is what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
if Var1=1 and Var2=1 then Var3 = -999;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/lgref/z0202239.htm" target="_blank"&gt;https://v8doc.sas.com/sashtml/lgref/z0202239.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-change-the-value-of-single-cells-of-a-column-based-on/m-p/377410#M24553</guid>
      <dc:creator>Rwon</dc:creator>
      <dc:date>2017-07-19T15:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the value of single cells (of a column) based on some conditions (of other columns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-change-the-value-of-single-cells-of-a-column-based-on/m-p/377418#M24555</link>
      <description>&lt;P&gt;Thanks, I understand the SAS base code that can do that, but since it's in Enterprise Guide, does it not have a point-and-click solution to it?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-change-the-value-of-single-cells-of-a-column-based-on/m-p/377418#M24555</guid>
      <dc:creator>KubiK888</dc:creator>
      <dc:date>2017-07-19T15:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the value of single cells (of a column) based on some conditions (of other columns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-change-the-value-of-single-cells-of-a-column-based-on/m-p/377476#M24558</link>
      <description>&lt;P&gt;Yes, it's quite easy in EG. Create a new query, and create an advanced expression. In the advanced expression, the CASE function will let you implement "if then else" type logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 17:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-change-the-value-of-single-cells-of-a-column-based-on/m-p/377476#M24558</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-07-19T17:30:32Z</dc:date>
    </item>
  </channel>
</rss>

