<?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: Problem of parameter with Parentheses in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-parameter-with-Parentheses/m-p/106302#M29616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sent you a solution in your previous thread, but I'll repeat it here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test(a);&lt;/P&gt;&lt;P&gt;%let a2=%nrbquote(&amp;amp;a);&lt;/P&gt;&lt;P&gt;%put a: &amp;amp;a2;&lt;/P&gt;&lt;P&gt;%mend test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%test(a=aa)&lt;/P&gt;&lt;P&gt;%test(a=njhl5IJK44t95y7u45n64)&lt;/P&gt;&lt;P&gt;%test(a=%str(njhl5u#$%^&amp;amp;*%(IJK44t95y7u45n64))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 19:54:02 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-08-28T19:54:02Z</dc:date>
    <item>
      <title>Problem of parameter with Parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-parameter-with-Parentheses/m-p/106301#M29615</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;If I run the following SAS code ,because there is a "(" in the parameter, I can't get the result I need . please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test(a);&lt;BR /&gt;%put value of a is: &amp;amp;a;&lt;BR /&gt;%mend test;&lt;/P&gt;&lt;P&gt;%test(a=njhl5u#$%^&amp;amp;*(IJK44t95y7u45n64);/*this one doesn't work*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 19:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-parameter-with-Parentheses/m-p/106301#M29615</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-28T19:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of parameter with Parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-parameter-with-Parentheses/m-p/106302#M29616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sent you a solution in your previous thread, but I'll repeat it here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test(a);&lt;/P&gt;&lt;P&gt;%let a2=%nrbquote(&amp;amp;a);&lt;/P&gt;&lt;P&gt;%put a: &amp;amp;a2;&lt;/P&gt;&lt;P&gt;%mend test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%test(a=aa)&lt;/P&gt;&lt;P&gt;%test(a=njhl5IJK44t95y7u45n64)&lt;/P&gt;&lt;P&gt;%test(a=%str(njhl5u#$%^&amp;amp;*%(IJK44t95y7u45n64))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 19:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-parameter-with-Parentheses/m-p/106302#M29616</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-28T19:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of parameter with Parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-parameter-with-Parentheses/m-p/106303#M29617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You properly identified the problem as the unbalanced parenthesis.&amp;nbsp; Art properly identified one possible solution, although his example illlustrates how quoting functions require you to refer to ( as %( within the quoting function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is an acceptable solution, get rid of the macro definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let a=njhl5u#$%^&amp;amp;*(IJK44t95y7u45n64;&lt;/P&gt;&lt;P&gt;%put &amp;amp;a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A partial solution might be possible as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let a=njhl5u#$%^&amp;amp;*(IJK44t95y7u45n64;&lt;/P&gt;&lt;P&gt;%test (a=%superq(a))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help at all?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 20:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-parameter-with-Parentheses/m-p/106303#M29617</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-08-28T20:01:39Z</dc:date>
    </item>
  </channel>
</rss>

