<?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: Conditionally executing multiple programs in data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304831#M64920</link>
    <description>&lt;P&gt;As suggested by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file 'c:\temp\test_mr1.sas';
  put 
    'data _null_; put "program executed is: c:\temp\test_mr1.sas"; stop; run;';
  file 'c:\temp\test_mr2.sas';
  put 
    'data _null_; put "program executed is: c:\temp\test_mr2.sas"; stop; run;';
  file 'c:\temp\test_mr3.sas';
  put 
    'data _null_; put "program executed is: c:\temp\test_mr3.sas"; stop; run;';
  stop;
run;

%let mth1=10;

data _null_;
  if &amp;amp;mth1 in (01,02,03,04,05,06,07) then
    do;
      if &amp;amp;mth1=01 then
        call execute('%include "c:\temp\test_mr1.sas" /source2;');
      else call execute('%include "c:\temp\test_mr2.sas" /source2;');
    end;
  else if &amp;amp;mth1 in (08,09,10,11,12) then
    call execute('%include "c:\temp\test_mr3.sas" /source2;');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 15 Oct 2016 02:23:23 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2016-10-15T02:23:23Z</dc:date>
    <item>
      <title>Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304816#M64909</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to execute multiple programs conditionally in data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg:&lt;/P&gt;
&lt;P&gt;%let mth1=10;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;if &amp;amp;mth1 in (01,02,03,04,05,06,07) then do;&lt;BR /&gt; if &amp;amp;mth1=01 then;&lt;BR /&gt; %include "C:\Users\Desktop\test_mr1.sas";&lt;BR /&gt; else;&lt;BR /&gt; %include "C:\Users\Desktop\test_mr2.sas";&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;if &amp;amp;mth1 in (08,09,10,11,12) then&lt;BR /&gt; %include "C:\Users\Desktop\test_mr3.sas";&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no errors in the log but the programs are not executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 23:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304816#M64909</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-10-14T23:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304817#M64910</link>
      <description>&lt;P&gt;&amp;nbsp;A few errors:&lt;/P&gt;
&lt;P&gt;1. %include doens't operate conditionally, it will execute all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If THEN isn't correct SAS syntax, it's&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF &amp;lt;condition&amp;gt; Then DO;&lt;/P&gt;
&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;
&lt;P&gt;END;&lt;/P&gt;
&lt;P&gt;Since you're only using a single statement you don't the DO/END block.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. If you're comparing to a string, you need quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try call execute instead, but I haven't tested it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if "&amp;amp;mth" in ("01", "02", "03" .. "07") then do;
&amp;nbsp; &amp;nbsp; if "&amp;amp;mth1"="01" then call execute('%include "C:\Users\Desktop\test_mr1.sas";');
&amp;nbsp; &amp;nbsp; else call execute(...);
end;
else if "&amp;amp;mth" in ("08", "09", .. "12") then call execute(...);
else put "Not a valid month";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 23:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304817#M64910</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-14T23:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304818#M64911</link>
      <description>&lt;P&gt;Thanks Reeza!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made the changes as per you suggestion but still the code is not producing any results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 23:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304818#M64911</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-10-14T23:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304820#M64913</link>
      <description>Post your current code and log.</description>
      <pubDate>Fri, 14 Oct 2016 23:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304820#M64913</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-14T23:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304821#M64914</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Here you go:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;%let mth1=10;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;if "&amp;amp;mth1" in ("08","09","10","11","12") then&lt;BR /&gt; call execute('C:\Users\Desktop\test_mr.sas;');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;130 data _null_;&lt;BR /&gt;131&lt;BR /&gt;SYMBOLGEN: Macro variable MTH1 resolves to 10&lt;BR /&gt;132 if "&amp;amp;mth1" in ("08","09","10","11","12") then&lt;BR /&gt;133 call execute('C:\Users\Desktop\test_mr.sas;');&lt;BR /&gt;134 run;&lt;/P&gt;
&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 23:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304821#M64914</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-10-14T23:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304822#M64915</link>
      <description>&lt;P&gt;You need a macro program to do it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*** Define the macro program ***/&lt;/P&gt;&lt;P&gt;%macro run_prog(mm);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; %if %eval(&amp;amp;mm) ge 01 and %eval(&amp;amp;mm) le 07 %then %do;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%if &amp;amp;mm = 01 %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %include &amp;nbsp;&lt;SPAN&gt; "C:\Users\Desktop\test_mr1.sas";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%else %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;%include &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; "C:\Users\Desktop\test_mr2.sas";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;%end; %else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;%if %eval(&amp;amp;mm) ge 08 and %eval(&amp;amp;mm) le 12&amp;nbsp;%then %do;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %include &amp;nbsp;&lt;SPAN&gt; "C:\Users\Desktop\test_mr3.sas";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;%end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%mend&amp;nbsp;run_prog;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/*** run the macro with desired argument ***/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%run_prog(10);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2016 00:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304822#M64915</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-10-15T00:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304823#M64916</link>
      <description>&lt;P&gt;Thanks Reeza!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just curious why a macro program was need instead of Call Execute?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2016 00:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304823#M64916</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-10-15T00:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304824#M64917</link>
      <description>&lt;P&gt;Maybe, if you use&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;call execute('&lt;STRONG&gt;%include&lt;/STRONG&gt; "C:\Users\Desktop\test_mr.sas;" ');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;instead&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;call execute('C:\Users\Desktop\test_mr.sas;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it will work too. It worth a test;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2016 00:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304824#M64917</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-10-15T00:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304826#M64918</link>
      <description>&lt;P&gt;Yeah, you dropped the %include. It was in my code, but not in yours.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2016 01:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304826#M64918</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-15T01:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304831#M64920</link>
      <description>&lt;P&gt;As suggested by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file 'c:\temp\test_mr1.sas';
  put 
    'data _null_; put "program executed is: c:\temp\test_mr1.sas"; stop; run;';
  file 'c:\temp\test_mr2.sas';
  put 
    'data _null_; put "program executed is: c:\temp\test_mr2.sas"; stop; run;';
  file 'c:\temp\test_mr3.sas';
  put 
    'data _null_; put "program executed is: c:\temp\test_mr3.sas"; stop; run;';
  stop;
run;

%let mth1=10;

data _null_;
  if &amp;amp;mth1 in (01,02,03,04,05,06,07) then
    do;
      if &amp;amp;mth1=01 then
        call execute('%include "c:\temp\test_mr1.sas" /source2;');
      else call execute('%include "c:\temp\test_mr2.sas" /source2;');
    end;
  else if &amp;amp;mth1 in (08,09,10,11,12) then
    call execute('%include "c:\temp\test_mr3.sas" /source2;');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Oct 2016 02:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304831#M64920</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-10-15T02:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304846#M64932</link>
      <description>&lt;P&gt;An alternative way is using SAS/IML's CALL EXECUTEFILE() .&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2016 04:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304846#M64932</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-15T04:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304875#M64946</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SAS Forum: Conditionally executing multiple programs in data step

It is my belief that DOSUBL is prefered over other methods
like 'call execute' and macros because two way communication
is possible and the solution resides in one address space
which should have a performance advantage?

HAVE three programs, I would like to conditionally execute based on the month (example)

  if month=1 then %include "c:\temp\test_mr1.sas" /source2
  if month=2 then %include "c:\temp\test_mr2.sas" /source2
  if month=3 then %include "c:\temp\test_mr3.sas" /source2

WANT this text in the log

   month=1 c:\temp\test_mr1.sas was executed

inpired by
https://goo.gl/jdwAjW
https://communities.sas.com/t5/Base-SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304816


SOLUTION working code

dosub:
  rc=dosubl(resolve('
     %include &amp;amp;prg.;
'));
return;

FULL SOLUTION

data _null_;
  file 'c:\temp\test_mr1.sas';
  put
    'data _null_; put "program executed is: c:\temp\test_mr1.sas"; stop; run;';
  file 'c:\temp\test_mr2.sas';
  put
    'data _null_; put "program executed is: c:\temp\test_mr2.sas"; stop; run;';
  file 'c:\temp\test_mr3.sas';
  put
    'data _null_; put "program executed is: c:\temp\test_mr3.sas"; stop; run;';
  stop;
run;

%let mth1=10;

data _null_;
  if &amp;amp;mth1 in (01,02,03,04,05,06,07) then
    do;
      if &amp;amp;mth1=01 then do;
        call symputx('prg','"c:\temp\test_mr1.sas" /source2');
        goto dosub;
      end;
      else do;
        call symputx('prg','"c:\temp\test_mr2.sas" /source2');
        goto dosub;
      end;
    end;
  else if &amp;amp;mth1 in (08,09,10,11,12) then do;
        call symputx('prg','"c:\temp\test_mr2.sas" /source2');
        goto dosub;
  end;
  return;
  dosub:
    rc=dosubl(resolve('
       %put &amp;amp;=mth1;
       %include &amp;amp;prg.;
  '));
   return;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Oct 2016 17:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/304875#M64946</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2016-10-15T17:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/305421#M65147</link>
      <description>&lt;P&gt;Thank you all for your suggestions!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really appreciate it!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 15:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/305421#M65147</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-10-18T15:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/305423#M65148</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your feedback.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am just curious to know why you incluced&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token string"&gt;/source2&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in the call excecute. What does /source2 means?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 16:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/305423#M65148</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-10-18T16:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/305537#M65184</link>
      <description>&lt;P&gt;"/source2" here is part of the %include statement. It makes sure that the included code gets also written to the SAS log as this make debugging much easier.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 21:12:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/305537#M65184</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-10-18T21:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally executing multiple programs in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/305559#M65188</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 23:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-executing-multiple-programs-in-data-step/m-p/305559#M65188</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-10-18T23:13:00Z</dc:date>
    </item>
  </channel>
</rss>

