<?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 with of withouth brackets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29663#M6975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; is a tot file, i.e a macro with a default expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%str()...and i ned to put the condition a) or b) , i am not sure........ inside of this braket..like %str(condition)...only i can change condition, anyone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 11:44:24 GMT</pubDate>
    <dc:creator>michtka</dc:creator>
    <dc:date>2012-03-14T11:44:24Z</dc:date>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29659#M6971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change in a macro of a standard table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the condition emerge by the other condition aetdate=. or aetdate &amp;gt;= factdat &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this statment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable=%str(emerge &amp;amp; trtrel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is, the change has to be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a)with brackets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable=%str( (aetdate=. or aetdate &amp;gt;= factdat) &amp;amp; trtrel) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b)withouth brackets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable=%str( aetdate=. or aetdate &amp;gt;= factdat &amp;amp; trtrel) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 15:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29659#M6971</guid>
      <dc:creator>michtka</dc:creator>
      <dc:date>2012-03-13T15:31:50Z</dc:date>
    </item>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29660#M6972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you have the %STR()?&amp;nbsp;&amp;nbsp; It looks like you are referencing actual variables why would you need to do macro quoting of any type?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 15:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29660#M6972</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-03-13T15:40:01Z</dc:date>
    </item>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29661#M6973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you are talking about.&lt;/P&gt;&lt;P&gt;It is in data step or Macro ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 04:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29661#M6973</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-03-14T04:24:15Z</dc:date>
    </item>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29662#M6974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; i suppose to prevent the resolution of &amp;amp; or a semicolon (;) if i need to.&lt;/P&gt;&lt;P&gt;Is a tot file tom, only i got for default %str()...and i need to put the condition inside of this bracket:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this condition has to be inside of this bracket as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) with brackets&amp;nbsp; (aetdate=. or aetdate &amp;gt;= factdat) &amp;amp; trtrel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) or withouth brackets&amp;nbsp; aetdate=. or aetdate &amp;gt;= factdat &amp;amp; trtrel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is the difference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 11:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29662#M6974</guid>
      <dc:creator>michtka</dc:creator>
      <dc:date>2012-03-14T11:42:27Z</dc:date>
    </item>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29663#M6975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; is a tot file, i.e a macro with a default expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%str()...and i ned to put the condition a) or b) , i am not sure........ inside of this braket..like %str(condition)...only i can change condition, anyone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 11:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29663#M6975</guid>
      <dc:creator>michtka</dc:creator>
      <dc:date>2012-03-14T11:44:24Z</dc:date>
    </item>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29664#M6976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you didn't need %str before, but you will need it now because of the equal sign and the added parentheses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you need the parentheses.&amp;nbsp; Without them, SAS would logically evaluate AND first (before OR).&amp;nbsp; With them, you can force SAS to evaluate OR first which is what your example requires.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When referring to parentheses inside %STR, you need to add an extra percent sign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; variable = %str( %(aetdate=. or aetdate &amp;gt; factdat%) &amp;amp; trtrel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 12:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29664#M6976</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-03-14T12:10:08Z</dc:date>
    </item>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29665#M6977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;I did not know SAS evaluate AND first then OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why I need to putthis %before (?...I&amp;nbsp; dont use these porcentages before ( as my option a of my post, and the macro works right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 23:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29665#M6977</guid>
      <dc:creator>michtka</dc:creator>
      <dc:date>2012-03-15T23:38:22Z</dc:date>
    </item>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29666#M6978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before, the parentheses were part of the %STR function, and they told SAS where to start and where to end applying the %STR function.&amp;nbsp; That still applies to the exterior parentheses in the sample solution.&amp;nbsp; They tell %STR where to start and where to end, so those parentheses don't need the extra %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These new&amp;nbsp; parentheses are inside the %STR function.&amp;nbsp; The %STR function is being applied to those characters.&amp;nbsp; That's why %STR requires %( and %).&amp;nbsp; Since the "inside" parentheses are balanced -- you have both a left then a right parenthesis -- you can try leaving out the % and see what happens.&amp;nbsp; It might work, but I'm not able to test that right now.&amp;nbsp; It will work using %( and %).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 23:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29666#M6978</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-03-15T23:52:43Z</dc:date>
    </item>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29667#M6979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, &lt;/P&gt;&lt;P&gt;try and let me know, thanks.&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;/P&gt;&lt;P&gt;your option: variable = %str( %(aetdate=. or aetdate &amp;gt; factdat%) &amp;amp; trtrel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my option: variable = %str( (aetdate=. or aetdate &amp;gt; factdat) &amp;amp; trtrel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we will see if there are&amp;nbsp; some differences.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 00:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29667#M6979</guid>
      <dc:creator>michtka</dc:creator>
      <dc:date>2012-03-16T00:42:25Z</dc:date>
    </item>
    <item>
      <title>with of withouth brackets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29668#M6980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;michtka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a similar test, and found I could omit the extra %.&amp;nbsp; But if you want to learn, you should try testing it yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 18:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/with-of-withouth-brackets/m-p/29668#M6980</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-03-19T18:49:16Z</dc:date>
    </item>
  </channel>
</rss>

