<?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 do syntax in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527655#M143903</link>
    <description>&lt;P&gt;Start with proper code formatting that lines up the do's with the end's:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set aa.test;
if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9) = 0
then do;
  if O3 in ('G2','O3') and &amp;amp;month &amp;lt; 201901
  then do;
    %inc "./test.inc";
  end;
  else do;
    %inc "./test.inc";
  end;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This code immediately rings my alarm bells; as both branches of the inner if execute the same code, that inner if is useless and should be removed anyway.&lt;/P&gt;
&lt;P&gt;Now, if all you need to do is to do nothing if the inner if is true, you just remove one line:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set aa.test;
if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9) = 0
then do;
  if O3 in ('G2','O3') and &amp;amp;month &amp;lt; 201901
  then do;
  end;
  else do;
    %inc "./test.inc";
  end;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the code structure remains intact.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Writing code in a properly structured manner is one of the foundations for efficient programming, see Maxim 12.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 08:22:28 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-01-16T08:22:28Z</dc:date>
    <item>
      <title>if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527585#M143849</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was asked to delete out a portion of the below code and when I do I am getting an error that states &lt;SPAN&gt;ERROR 160-185: No matching IF-THEN clause. Any ideas on what I am missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(This was the original code: - ran no problem)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;set aa.test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9)=0 then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if O3 in ('G2','O3') and &amp;amp;month &amp;lt; 201901 then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; %inc "./test.inc";&lt;BR /&gt;end;&lt;BR /&gt;else&lt;BR /&gt;do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %inc "./test.inc";&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Code where I deleted what was requested and now getting above error)&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; set aa.test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9)=0 then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; else&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %inc "./test.inc";&lt;/P&gt;&lt;P&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 01:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527585#M143849</guid>
      <dc:creator>girlieq97</dc:creator>
      <dc:date>2019-01-16T01:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527588#M143851</link>
      <description>&lt;P&gt;Your first do has nothing in the ‘do’ section and the ‘end’ needs to come before the ‘else’. You have two do and two end, but not in the right places. See the DO in red. Where is the matching end?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122688"&gt;@girlieq97&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was asked to delete out a portion of the below code and when I do I am getting an error that states &lt;SPAN&gt;ERROR 160-185: No matching IF-THEN clause. Any ideas on what I am missing?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(This was the original code: - ran no problem)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;set aa.test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9)=0 then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if O3 in ('G2','O3') and &amp;amp;month &amp;lt; 201901 then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; %inc "./test.inc";&lt;BR /&gt;end;&lt;BR /&gt;else&lt;BR /&gt;do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %inc "./test.inc";&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Code where I deleted what was requested and now getting above error)&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; set aa.test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9)=0 then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;do;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; else&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %inc "./test.inc";&lt;/P&gt;
&lt;P&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 01:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527588#M143851</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-16T01:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527589#M143852</link>
      <description>You could just change the condition to be: &lt;BR /&gt;&lt;BR /&gt;if sum(....) ne 0 the do %inc ‘./test.inc’;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jan 2019 01:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527589#M143852</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-16T01:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527591#M143854</link>
      <description>like this?&lt;BR /&gt;&lt;BR /&gt;data test;&lt;BR /&gt;set aa.test;&lt;BR /&gt;if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9)=0 then&lt;BR /&gt;do %inc "./test.inc";&lt;BR /&gt;run;</description>
      <pubDate>Wed, 16 Jan 2019 01:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527591#M143854</guid>
      <dc:creator>girlieq97</dc:creator>
      <dc:date>2019-01-16T01:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527592#M143855</link>
      <description>You need to flip the condition. See mine, yours is different.</description>
      <pubDate>Wed, 16 Jan 2019 01:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527592#M143855</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-16T01:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527601#M143861</link>
      <description>&lt;P&gt;Actually %INC has a few things I missed. One it’s a global statement so cannot be used with conditional logic. Second is it has to follow a semicolon. &lt;BR /&gt;&lt;BR /&gt;Try switching If/Then to %if/%then/%do. If you’re using an older version of SAS you’ll have to wrap the program in a macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Heres the reference for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p1s3uhhqtscz2sn1otiatbovfn1t.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p1s3uhhqtscz2sn1otiatbovfn1t.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 02:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527601#M143861</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-16T02:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527602#M143862</link>
      <description>thanks for your response. I am not sure I follow, but the jist is the way it is written I can't just remove the requested part and run as is. I need to change a couple of things due to the include file. Trying now thank you.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jan 2019 02:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527602#M143862</guid>
      <dc:creator>girlieq97</dc:creator>
      <dc:date>2019-01-16T02:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527623#M143881</link>
      <description>Is your example code, your actual code? That would never have worked correctly is one problem.</description>
      <pubDate>Wed, 16 Jan 2019 04:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527623#M143881</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-16T04:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527624#M143882</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122688"&gt;@girlieq97&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;thanks for your response. I am not sure I follow, but the jist is the way it is written I can't just remove the requested part and run as is. I need to change a couple of things due to the include file. Trying now thank you.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="xis-title"&gt;Rules for Using %INCLUDE&lt;/H3&gt;
&lt;DIV id="n05grnarrg311un180gi0940ye0m" class="xis-topicContent"&gt;
&lt;DIV id="n0knh220pg76pnn1cqmcmhux35qe" class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV id="n0gz0x0ou8z2j8n1cf2h0r0q5rt4" class="xis-item"&gt;
&lt;DIV id="p1hw0z6l759nd0n1ebekegd3j6jf" class="xis-paraSimpleFirst"&gt;You can specify any number of sources in a %INCLUDE statement, and you can mix the types of included sources. However, although it is possible to include information from multiple sources in one %INCLUDE statement, it might be easier to understand a program that uses separately coded %INCLUDE statements for each source.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p1gexw3g0cuvaln192ryhvu6rizi" class="xis-item"&gt;
&lt;DIV id="n1hvv4hn6s7u87n0zbnjcstfkk5u" class="xis-paraSimpleFirst"&gt;The %INCLUDE statement must begin at a statement boundary. That is, it must be the first statement in a SAS job or must immediately follow a semicolon that ends another statement. A %INCLUDE statement cannot immediately follow a DATALINES, DATALINES4, CARDS, or CARDS4 statement (or PARMCARDS or PARMCARDS4 statement in procedures that use those statements). However, you can include data lines with the %INCLUDE statement using one of these methods:&lt;/DIV&gt;
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV id="n1n8sll6xezcjrn1xabuhow6fi6c" class="xis-item"&gt;
&lt;DIV id="p1hyyaanu7kph1n1kdowmjwytrj5" class="xis-paraSimpleFirst"&gt;Make the DATALINES, DATALINES4 statement or the CARDS, CARDS4 statement the first line in the file that contains the data.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n142epf1jyvcu0n1mp9ms7kg3p32" class="xis-item"&gt;
&lt;DIV id="n1xj8t3sbfm4uyn1j8a5xbkz5dge" class="xis-paraSimpleFirst"&gt;Place the DATALINES, DATALINES4 statement or the CARDS, CARDS4 statement in one file, and the data lines in another file. Use both sources in a single %INCLUDE statement.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV id="p0exeofwfjb604n1w9dfzw2na0jy" class="xis-paraSimple"&gt;The %INCLUDE statement can be nested within a file that has been accessed with %INCLUDE. The maximum number of nested %INCLUDE statements that you can use depends on system-specific limitations of your operating environment (such as available memory or the number of files that you can have open concurrently).&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n0m6ucv2ycoknsn1ueghxgrhnflc" class="xis-item"&gt;
&lt;DIV id="p0tbj2tup4oq2jn1t7ymdrf6e05i" class="xis-paraSimpleFirst"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Because %INCLUDE is a global statement and global statements are not executable, the %INCLUDE statement cannot be used in conditional logic.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p0e7j77x93874on1tpsnipc8tvco" class="xis-item"&gt;
&lt;DIV id="p1tmm9dzkspx3sn1p99vxhf8x7ej" class="xis-paraSimpleFirst"&gt;The maximum line length is 32K bytes.&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p1s3uhhqtscz2sn1otiatbovfn1t.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p1s3uhhqtscz2sn1otiatbovfn1t.htm&amp;amp;locale=en&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Jan 2019 04:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527624#M143882</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-16T04:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527655#M143903</link>
      <description>&lt;P&gt;Start with proper code formatting that lines up the do's with the end's:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set aa.test;
if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9) = 0
then do;
  if O3 in ('G2','O3') and &amp;amp;month &amp;lt; 201901
  then do;
    %inc "./test.inc";
  end;
  else do;
    %inc "./test.inc";
  end;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This code immediately rings my alarm bells; as both branches of the inner if execute the same code, that inner if is useless and should be removed anyway.&lt;/P&gt;
&lt;P&gt;Now, if all you need to do is to do nothing if the inner if is true, you just remove one line:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set aa.test;
if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9) = 0
then do;
  if O3 in ('G2','O3') and &amp;amp;month &amp;lt; 201901
  then do;
  end;
  else do;
    %inc "./test.inc";
  end;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the code structure remains intact.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Writing code in a properly structured manner is one of the foundations for efficient programming, see Maxim 12.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 08:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/527655#M143903</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-16T08:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: if then else do syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/529122#M144515</link>
      <description>thank you I was able to correct the code to below.&lt;BR /&gt;&lt;BR /&gt;set aa.test;&lt;BR /&gt;if sum(e1,e2,e3,e4a,e4b,e5,e6,e7,e8,e9)=0 then&lt;BR /&gt;do;&lt;BR /&gt;%inc "./test.inc";&lt;BR /&gt;end;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 22 Jan 2019 17:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/if-then-else-do-syntax/m-p/529122#M144515</guid>
      <dc:creator>girlieq97</dc:creator>
      <dc:date>2019-01-22T17:00:17Z</dc:date>
    </item>
  </channel>
</rss>

