<?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 Condition to execute proc in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Condition-to-execute-proc/m-p/25944#M5888</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I need help in this situation.&lt;BR /&gt;
&lt;BR /&gt;
I need a condition before and out the proc, if the condition is true, run a proc, else skip.&lt;BR /&gt;
&lt;BR /&gt;
Can someone help me?&lt;BR /&gt;
&lt;BR /&gt;
Exemple:&lt;BR /&gt;
&lt;BR /&gt;
IF &amp;amp;VAR. = 1&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
SELECT * FROM TABLE;&lt;BR /&gt;
QUIT;</description>
    <pubDate>Fri, 04 Dec 2009 16:53:28 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-12-04T16:53:28Z</dc:date>
    <item>
      <title>Condition to execute proc</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Condition-to-execute-proc/m-p/25944#M5888</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I need help in this situation.&lt;BR /&gt;
&lt;BR /&gt;
I need a condition before and out the proc, if the condition is true, run a proc, else skip.&lt;BR /&gt;
&lt;BR /&gt;
Can someone help me?&lt;BR /&gt;
&lt;BR /&gt;
Exemple:&lt;BR /&gt;
&lt;BR /&gt;
IF &amp;amp;VAR. = 1&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
SELECT * FROM TABLE;&lt;BR /&gt;
QUIT;</description>
      <pubDate>Fri, 04 Dec 2009 16:53:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Condition-to-execute-proc/m-p/25944#M5888</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-04T16:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Condition to execute proc</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Condition-to-execute-proc/m-p/25945#M5889</link>
      <description>%macro chkrun( var);&lt;BR /&gt;
  %if &amp;amp;var = 1 %then %do;&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
SELECT * FROM TABLE;&lt;BR /&gt;
QUIT; &lt;BR /&gt;
%end;&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%chkrun( 1 );</description>
      <pubDate>Fri, 04 Dec 2009 17:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Condition-to-execute-proc/m-p/25945#M5889</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-12-04T17:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Condition to execute proc</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Condition-to-execute-proc/m-p/25946#M5890</link>
      <description>Thanks!&lt;BR /&gt;
&lt;BR /&gt;
It's work very well.</description>
      <pubDate>Fri, 04 Dec 2009 17:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Condition-to-execute-proc/m-p/25946#M5890</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-04T17:30:09Z</dc:date>
    </item>
  </channel>
</rss>

