<?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: Function name missing in %SYSFUNC or %QSYSFUNC macro function reference. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531943#M145698</link>
    <description>You are right. I missed . while referring Business. It worked now.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot Karolis!</description>
    <pubDate>Fri, 01 Feb 2019 11:50:59 GMT</pubDate>
    <dc:creator>Vigneswar</dc:creator>
    <dc:date>2019-02-01T11:50:59Z</dc:date>
    <item>
      <title>ERROR: Function name missing in %SYSFUNC or %QSYSFUNC macro function reference.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531929#M145690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a file name Canada_CM_ Jan_28_2019 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File is basically extracting the Business name with monday's date of the week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let t=%sysfunc(today());&lt;BR /&gt;%let monday=%sysfunc(intnx(week.2,&amp;amp;t,0,b),date9.);&lt;BR /&gt;%let outputdate=%substr(&amp;amp;monday,3,3)_%substr(&amp;amp;monday,1,2)_%substr(&amp;amp;monday,6);&lt;BR /&gt;%put &amp;amp;outputdate;&lt;/P&gt;&lt;P&gt;%let Business = %sysfunc(scan(Canada_all,1,'_'));&lt;BR /&gt;%put &amp;amp;Business;&lt;/P&gt;&lt;P&gt;%let file = %qsysfunc(&amp;amp;Business_CM_ &amp;amp;outputdate);&lt;/P&gt;&lt;P&gt;%put &amp;amp;file;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When run the code I am getting the below error,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference BUSINESS_CM_ not resolved.&lt;BR /&gt;ERROR: Function name missing in %SYSFUNC or %QSYSFUNC macro function reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vigneswar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531929#M145690</guid>
      <dc:creator>Vigneswar</dc:creator>
      <dc:date>2019-02-01T10:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Function name missing in %SYSFUNC or %QSYSFUNC macro function reference.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531934#M145693</link>
      <description>&lt;PRE&gt;data _null_;
  want=cats("Canada_CM_",put(month(today()),monname3.),put(day(today(),best.),put(year(today()),best.));&lt;BR /&gt;  call symputx('file',want);
run;&lt;BR /&gt;&lt;BR /&gt;Note not tested, but something like that.&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 11:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531934#M145693</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-02-01T11:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Function name missing in %SYSFUNC or %QSYSFUNC macro function reference.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531936#M145694</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;It tries to resolve&amp;nbsp;&lt;CODE class=" language-sas"&gt;Business_CM macro variable, but you haven't declared it. I'm guessing, you are trying to resolve &amp;amp;Business followed by _CM_ and then date. Try code below. I added . after &amp;amp;Business, also I have changed %sysfunc(scan()) to %scan.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let t=%sysfunc(today());
%let monday=%sysfunc(intnx(week.2,&amp;amp;t,0,b),date9.);
%let outputdate=%substr(&amp;amp;monday,3,3)_%substr(&amp;amp;monday,1,2)_%substr(&amp;amp;monday,6);
%put &amp;amp;outputdate;

%let Business = &lt;STRONG&gt;%scan(&lt;/STRONG&gt;Canada_all,1,_);
%put &amp;amp;Business;

%let file = &amp;amp;Business&lt;STRONG&gt;.&lt;/STRONG&gt;_CM_&amp;amp;outputdate;

%put &amp;amp;file;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;- Karolis&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 11:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531936#M145694</guid>
      <dc:creator>karolis_b</dc:creator>
      <dc:date>2019-02-01T11:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Function name missing in %SYSFUNC or %QSYSFUNC macro function reference.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531937#M145695</link>
      <description>%let Business = %sysfunc(scan(Canada_all,1,'_'));&lt;BR /&gt;&lt;BR /&gt;where scan(&amp;amp;output.,1,'_')&lt;BR /&gt;&lt;BR /&gt;This output value is not specific to canada. It is dynamically changing getting resolved by an another macro &amp;amp;output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry for missing this!</description>
      <pubDate>Fri, 01 Feb 2019 11:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531937#M145695</guid>
      <dc:creator>Vigneswar</dc:creator>
      <dc:date>2019-02-01T11:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Function name missing in %SYSFUNC or %QSYSFUNC macro function reference.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531942#M145697</link>
      <description>&lt;P&gt;See Maxim 48. Always terminate macro variable references with a dot (&amp;amp;Business.).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 11:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531942#M145697</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-01T11:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Function name missing in %SYSFUNC or %QSYSFUNC macro function reference.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531943#M145698</link>
      <description>You are right. I missed . while referring Business. It worked now.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot Karolis!</description>
      <pubDate>Fri, 01 Feb 2019 11:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Function-name-missing-in-SYSFUNC-or-QSYSFUNC-macro/m-p/531943#M145698</guid>
      <dc:creator>Vigneswar</dc:creator>
      <dc:date>2019-02-01T11:50:59Z</dc:date>
    </item>
  </channel>
</rss>

