<?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: Why If condition won't work in Procedures??? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Why-If-condition-won-t-work-in-Procedures/m-p/84518#M24205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The short answer: the procedures weren't programmed that way.&lt;/P&gt;&lt;P&gt;My guess why not: make sure your data is what you want to analyze before going to procedures else they get very complicated to program and maintain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What procedure do want to use that you think NEEDS an IF statement?&lt;/P&gt;&lt;P&gt;If you want a procedure to process some of the data based on a condition that is accomplished with a WHERE statement as part of the procedure or as a data set option;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2013 16:23:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2013-01-24T16:23:43Z</dc:date>
    <item>
      <title>Why If condition won't work in Procedures???</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-If-condition-won-t-work-in-Procedures/m-p/84517#M24204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;"Why If condition won't work in Procedures"????&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Per my knowledge IF condition works only in&amp;nbsp; Proc Report Procedure that too in Compute block only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one explain me why IF won't works in all other procedures??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.K &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 11:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-If-condition-won-t-work-in-Procedures/m-p/84517#M24204</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-01-24T11:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why If condition won't work in Procedures???</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-If-condition-won-t-work-in-Procedures/m-p/84518#M24205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The short answer: the procedures weren't programmed that way.&lt;/P&gt;&lt;P&gt;My guess why not: make sure your data is what you want to analyze before going to procedures else they get very complicated to program and maintain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What procedure do want to use that you think NEEDS an IF statement?&lt;/P&gt;&lt;P&gt;If you want a procedure to process some of the data based on a condition that is accomplished with a WHERE statement as part of the procedure or as a data set option;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 16:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-If-condition-won-t-work-in-Procedures/m-p/84518#M24205</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-01-24T16:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why If condition won't work in Procedures???</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-If-condition-won-t-work-in-Procedures/m-p/84519#M24206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because there's a WHERE clause and its more efficient that IF statements. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 17:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-If-condition-won-t-work-in-Procedures/m-p/84519#M24206</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-24T17:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why If condition won't work in Procedures???</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-If-condition-won-t-work-in-Procedures/m-p/84520#M24207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHERE statements just subset or filter your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF statements do a whole lot more than just filter data. Their primary use in DATA steps is conditional processing (IF condition true then do something), hence their implementation in REPORT procedure COMPUTE blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing IF conditional processing in procedures other than REPORT doesn't make sense because their purpose is to transform data and that can be handled in the DATA step. And if all you want to do is filter data then WHERE statements are available for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 18:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-If-condition-won-t-work-in-Procedures/m-p/84520#M24207</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-01-24T18:57:05Z</dc:date>
    </item>
  </channel>
</rss>

