<?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: IF then else in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260843#M50662</link>
    <description>Thank you very much. Problem was I put single quote. So this means we don't need any quote even if it is character value for macro variable. Now it's working without quote.</description>
    <pubDate>Fri, 01 Apr 2016 21:49:06 GMT</pubDate>
    <dc:creator>Bal</dc:creator>
    <dc:date>2016-04-01T21:49:06Z</dc:date>
    <item>
      <title>IF then else</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260826#M50655</link>
      <description>&lt;P&gt;Why below append and contents prod does not work inside do loop?&lt;/P&gt;
&lt;P&gt;........................................&lt;/P&gt;
&lt;P&gt;%if &amp;amp;error='NO' %then %do;*Macro error has 'NO'.&lt;BR /&gt; %let message=&amp;amp;message;*I have message defined aleady;&lt;BR /&gt; proc contents data=record;*I already have record dataset;&lt;BR /&gt; proc append base=updates data=record;&lt;BR /&gt; run;&lt;BR /&gt; %end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i run above code inside macro data 'record' does not append to the 'updates' table.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 20:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260826#M50655</guid>
      <dc:creator>Bal</dc:creator>
      <dc:date>2016-04-01T20:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: IF then else</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260832#M50658</link>
      <description>&lt;P&gt;It will help to show the entire macro and how you assign a value to &amp;amp;error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a debug tool use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options mprint symbolgen;&lt;/P&gt;
&lt;P&gt;and then run the macro. The post the results from the log.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 20:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260832#M50658</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-01T20:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: IF then else</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260835#M50660</link>
      <description>&lt;P&gt;Does the macro variable ERROR contain the value NO or does it also contain the surrounding single quotes?&lt;/P&gt;
&lt;P&gt;Your code is checking for the value 'NO' not for the value NO.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 21:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260835#M50660</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-04-01T21:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF then else</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260839#M50661</link>
      <description>&lt;P&gt;I have created NO as below:&lt;/P&gt;
&lt;P&gt;call symput('error', 'NO');&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 21:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260839#M50661</guid>
      <dc:creator>Bal</dc:creator>
      <dc:date>2016-04-01T21:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: IF then else</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260843#M50662</link>
      <description>Thank you very much. Problem was I put single quote. So this means we don't need any quote even if it is character value for macro variable. Now it's working without quote.</description>
      <pubDate>Fri, 01 Apr 2016 21:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-then-else/m-p/260843#M50662</guid>
      <dc:creator>Bal</dc:creator>
      <dc:date>2016-04-01T21:49:06Z</dc:date>
    </item>
  </channel>
</rss>

