<?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: macro call ERROR in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-call-ERROR/m-p/788083#M251902</link>
    <description>Thanks for the solution.&lt;BR /&gt;It worked. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;actually, in the dataset, the values of the variable has multiple possibility.&lt;BR /&gt;I am checking macro to work with every possibility.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks you very much again for your help.</description>
    <pubDate>Mon, 03 Jan 2022 12:32:42 GMT</pubDate>
    <dc:creator>abhinayingole</dc:creator>
    <dc:date>2022-01-03T12:32:42Z</dc:date>
    <item>
      <title>macro call ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-call-ERROR/m-p/788081#M251900</link>
      <description>&lt;P&gt;I am facing below error while executing below macro.&lt;/P&gt;&lt;P&gt;can someone please help.&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=""&gt;%macro test (stx = );

  %if &amp;amp;stx. ne %then %do;
  
    data test;
      test = "test quote";
    run;  
  
  %end;

%mend test;

%test (stx = %str(test ()-N)      );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhinayingole_0-1641209912698.png" style="width: 620px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67072i50C5630F83EC0502/image-dimensions/620x138?v=v2" width="620" height="138" role="button" title="abhinayingole_0-1641209912698.png" alt="abhinayingole_0-1641209912698.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 11:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-call-ERROR/m-p/788081#M251900</guid>
      <dc:creator>abhinayingole</dc:creator>
      <dc:date>2022-01-03T11:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: macro call ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-call-ERROR/m-p/788082#M251901</link>
      <description>&lt;P&gt;Can you explain the larger picture? You have posted a number of questions about using macros and macro variables where macro variables have parentheses in them. It appears that you are constructing macros variables whose values have parentheses in the, and this seems inefficient and can cause lots of these types of problems, and I get the feeling there probably is a much easier way to handle this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your specific problem goes away with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if %superq(stx) ne %then %do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 12:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-call-ERROR/m-p/788082#M251901</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-03T12:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: macro call ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-call-ERROR/m-p/788083#M251902</link>
      <description>Thanks for the solution.&lt;BR /&gt;It worked. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;actually, in the dataset, the values of the variable has multiple possibility.&lt;BR /&gt;I am checking macro to work with every possibility.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks you very much again for your help.</description>
      <pubDate>Mon, 03 Jan 2022 12:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-call-ERROR/m-p/788083#M251902</guid>
      <dc:creator>abhinayingole</dc:creator>
      <dc:date>2022-01-03T12:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: macro call ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-call-ERROR/m-p/788084#M251903</link>
      <description>&lt;P&gt;Modifying my answer to the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if %bquote(&amp;amp;stx) ne %then %do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I guess my feeling is that you use the lowest level of quoting needed, which would be %bquote rather than %superq; however not knowing the full extent of how this cod will be used, %superq may be needed for other values of &amp;amp;stx&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 12:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-call-ERROR/m-p/788084#M251903</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-03T12:34:21Z</dc:date>
    </item>
  </channel>
</rss>

