<?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: INTNX within macro var definition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INTNX-within-macro-var-definition/m-p/64880#M14105</link>
    <description>Never mind - I got it working by removing the quotes aroung month and begin.  Quotes and macros have gotten me before.  Could somebody explain why they are not needed in this instance.&lt;BR /&gt;
&lt;BR /&gt;
Fix: &lt;BR /&gt;
&lt;BR /&gt;
%let history_end_date = 01Jul2009;&lt;BR /&gt;
%let val1 = %sysfunc(inputn(&amp;amp;HISTORY_END_DATE,date9.)); &lt;BR /&gt;
%let val2b = %sysfunc(intnx(Month,%eval(&amp;amp;val1),1,Begin));&lt;BR /&gt;
&lt;BR /&gt;
* no quotes needed</description>
    <pubDate>Fri, 14 Aug 2009 21:09:27 GMT</pubDate>
    <dc:creator>LAP</dc:creator>
    <dc:date>2009-08-14T21:09:27Z</dc:date>
    <item>
      <title>INTNX within macro var definition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-within-macro-var-definition/m-p/64879#M14104</link>
      <description>Could someone explain why this doesn't work and how to make it work.  (other than a call symput from a data step)&lt;BR /&gt;
&lt;BR /&gt;
%let history_end_date = 01Jul2009;&lt;BR /&gt;
%let val1 = %sysfunc(inputn(&amp;amp;HISTORY_END_DATE,date9.));  &lt;BR /&gt;
  (This is ok up to this point);  val1 = 18079;&lt;BR /&gt;
&lt;BR /&gt;
However, neither of these statements work....&lt;BR /&gt;
&lt;BR /&gt;
%let val2a = %sysfunc(intnx("Month",18079,1,"Begin")); &lt;BR /&gt;
%let val2b = %sysfunc(intnx("Month",%eval(&amp;amp;val1),1,"Begin"));&lt;BR /&gt;
&lt;BR /&gt;
  &lt;BR /&gt;
Thanks</description>
      <pubDate>Fri, 14 Aug 2009 19:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-within-macro-var-definition/m-p/64879#M14104</guid>
      <dc:creator>LAP</dc:creator>
      <dc:date>2009-08-14T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX within macro var definition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-within-macro-var-definition/m-p/64880#M14105</link>
      <description>Never mind - I got it working by removing the quotes aroung month and begin.  Quotes and macros have gotten me before.  Could somebody explain why they are not needed in this instance.&lt;BR /&gt;
&lt;BR /&gt;
Fix: &lt;BR /&gt;
&lt;BR /&gt;
%let history_end_date = 01Jul2009;&lt;BR /&gt;
%let val1 = %sysfunc(inputn(&amp;amp;HISTORY_END_DATE,date9.)); &lt;BR /&gt;
%let val2b = %sysfunc(intnx(Month,%eval(&amp;amp;val1),1,Begin));&lt;BR /&gt;
&lt;BR /&gt;
* no quotes needed</description>
      <pubDate>Fri, 14 Aug 2009 21:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-within-macro-var-definition/m-p/64880#M14105</guid>
      <dc:creator>LAP</dc:creator>
      <dc:date>2009-08-14T21:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX within macro var definition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-within-macro-var-definition/m-p/64881#M14106</link>
      <description>When working with a DATA step and a function, you are either specifying a constant string (in quotes or double-quotes), and when using the macro %SYSFUNC interface (as well as macro language constructs), the data values themselves are treated as data-strings, unless you are using a macro variable (with an ampersand prefix).&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 14 Aug 2009 23:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-within-macro-var-definition/m-p/64881#M14106</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-14T23:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX within macro var definition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-within-macro-var-definition/m-p/64882#M14107</link>
      <description>Correction (truncated info): "When working with a DATA step and using a function, you specify one or argument(s) as string constant (in quotes or double-quotes) and/or one or more SAS variables, and ...".&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 15 Aug 2009 21:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-within-macro-var-definition/m-p/64882#M14107</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-15T21:15:34Z</dc:date>
    </item>
  </channel>
</rss>

