<?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: ERROR: Expected open parenthesis after macro function name not found in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expected-open-parenthesis-after-macro-function-name-not/m-p/805762#M317404</link>
    <description>&lt;P&gt;It doesn't actually look like that, I had to censor the pathway name due to HIPAA restrictions. I've tried it with multiple lines of code. This is what I get each time. This specific example is from my first line of code (the X's are indicating censored info, hopefully that makes it more clear, it's nothing different from a normal LIBNAME statement)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME CapSrc "XXXXXXXXXXXXXXx";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abrice520_0-1649031248209.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70080i236ADE1100B16395/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abrice520_0-1649031248209.png" alt="abrice520_0-1649031248209.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 00:17:07 GMT</pubDate>
    <dc:creator>abrice520</dc:creator>
    <dc:date>2022-04-04T00:17:07Z</dc:date>
    <item>
      <title>ERROR: Expected open parenthesis after macro function name not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expected-open-parenthesis-after-macro-function-name-not/m-p/805752#M317397</link>
      <description>&lt;P&gt;I received the error message "&lt;SPAN&gt;ERROR: Expected open parenthesis after macro function name not found" very randomly. I have no macro functions in my code, at all. I checked and I had a couple "%" in some of my comments that I was keeping notes in, but since they were commented out SAS shouldn't have touched that.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I was importing another file and then ran my whole program and got this message. Now none of my code is running, even simple LIBNAME statements. I tried closing the program and reopening it and that didn't work. What is happening??&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is the import code I ran if that is relevant at all:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT
	DATAFILE= "      .csv"
	OUT= Capimpt.Workingdata 
	REPLACE
	DBMS= CSV;
	GUESSINGROWS= 3000;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 Apr 2022 21:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expected-open-parenthesis-after-macro-function-name-not/m-p/805752#M317397</guid>
      <dc:creator>abrice520</dc:creator>
      <dc:date>2022-04-03T21:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expected open parenthesis after macro function name not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expected-open-parenthesis-after-macro-function-name-not/m-p/805754#M317398</link>
      <description>&lt;P&gt;Without you sharing the SAS code and SAS log there isn't much we can say.&lt;/P&gt;
&lt;P&gt;IF you share a SAS log then please from a new SAS session so that no "left-overs" impact the result.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1649024579563.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70079i2E8B47CFE17017DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1649024579563.png" alt="Patrick_0-1649024579563.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In case your actual code really looks like above then that wouldn't work.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 22:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expected-open-parenthesis-after-macro-function-name-not/m-p/805754#M317398</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-04-03T22:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expected open parenthesis after macro function name not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expected-open-parenthesis-after-macro-function-name-not/m-p/805762#M317404</link>
      <description>&lt;P&gt;It doesn't actually look like that, I had to censor the pathway name due to HIPAA restrictions. I've tried it with multiple lines of code. This is what I get each time. This specific example is from my first line of code (the X's are indicating censored info, hopefully that makes it more clear, it's nothing different from a normal LIBNAME statement)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME CapSrc "XXXXXXXXXXXXXXx";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abrice520_0-1649031248209.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70080i236ADE1100B16395/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abrice520_0-1649031248209.png" alt="abrice520_0-1649031248209.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 00:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expected-open-parenthesis-after-macro-function-name-not/m-p/805762#M317404</guid>
      <dc:creator>abrice520</dc:creator>
      <dc:date>2022-04-04T00:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expected open parenthesis after macro function name not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expected-open-parenthesis-after-macro-function-name-not/m-p/805763#M317405</link>
      <description>&lt;P&gt;Restart your SAS session. Something has rendered unstable. That "something" is likely what ever triggered SAS to think you have a macro function call somewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you run code and nothing happens, then SAVE the code and restart SAS as the program is not unstable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without an exact example of the comment you mentioned with a % can't say if that was the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your file names or paths have % or &amp;amp; characters then that is suboptimal and you should consider removing them.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 00:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expected-open-parenthesis-after-macro-function-name-not/m-p/805763#M317405</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-04T00:33:18Z</dc:date>
    </item>
  </channel>
</rss>

