<?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 macro function question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159321#M299431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;I have following code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; m = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; cal_month = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;%eval&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;(intnx('month', &amp;amp;min_monthdate, &amp;amp;m));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;SAS gave me an error message of&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Required operator not found in expression: intnx('month',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15096, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;How should I fix it? Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 17:29:51 GMT</pubDate>
    <dc:creator>swimmer</dc:creator>
    <dc:date>2014-08-13T17:29:51Z</dc:date>
    <item>
      <title>macro function question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159321#M299431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;I have following code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; m = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; cal_month = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;%eval&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;(intnx('month', &amp;amp;min_monthdate, &amp;amp;m));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;SAS gave me an error message of&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Required operator not found in expression: intnx('month',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15096, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;How should I fix it? Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 17:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159321#M299431</guid>
      <dc:creator>swimmer</dc:creator>
      <dc:date>2014-08-13T17:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: macro function question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159322#M299432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; cal_month = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%eval&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(intnx('month', &lt;STRONG&gt;"&amp;amp;min_monthdate"d&lt;/STRONG&gt;, &amp;amp;m));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 17:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159322#M299432</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-08-13T17:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: macro function question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159323#M299433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, but I got the same error.&lt;/P&gt;&lt;P&gt;ERROR: Required operator not found in expression: intnx('month', "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15096"d, 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 17:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159323#M299433</guid>
      <dc:creator>swimmer</dc:creator>
      <dc:date>2014-08-13T17:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: macro function question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159324#M299434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macro language does not understand how to use INTNX.&amp;nbsp; You can force it to understand by adding %SYSFUNC.&amp;nbsp; In that case the quotes around 'month' disappear (macro language assumes that month is a character string and not a reference to a variable).&amp;nbsp; And there is no need for %EVAL since INTNX returns an integer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let cal_month = %sysfunc(intnx(month, &amp;amp;min_monthdate, &amp;amp;m));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 17:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159324#M299434</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-08-13T17:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: macro function question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159325#M299435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much! It works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 17:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-function-question/m-p/159325#M299435</guid>
      <dc:creator>swimmer</dc:creator>
      <dc:date>2014-08-13T17:46:39Z</dc:date>
    </item>
  </channel>
</rss>

