<?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: SAS Macro DATE MACRO VARIABLE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15049#M1943</link>
    <description>Given your SAS DATA step assignment code, suggest the OP look at using the INTNX function to derive (in one statement), a "last month period ending DATETIME" value, using "DTMONTH" as argument #1 and "END" as argument three.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
intnx function month ending date site:sas.com</description>
    <pubDate>Mon, 11 Oct 2010 18:58:31 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-10-11T18:58:31Z</dc:date>
    <item>
      <title>SAS Macro DATE MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15047#M1941</link>
      <description>I am new to MACRO &lt;BR /&gt;
&lt;BR /&gt;
Here's what I wrote to create &lt;BR /&gt;
d1 as last month this year &lt;BR /&gt;
d2 as last month last year &lt;BR /&gt;
&lt;BR /&gt;
	data _test_ ;&lt;BR /&gt;
		d1 =  put(mdy(month(today())-1,1,year(today())-1),yymmdd10.);&lt;BR /&gt;
		call symput('d1',"'"||put(d1,9.)||" 23:59:59'") ;&lt;BR /&gt;
		d2 =  put(mdy(month(today())-1,1,year(today())),yymmdd10.);&lt;BR /&gt;
		call symput('d2',"'"||put(d2,9.)||" 23:59:59'") ;&lt;BR /&gt;
	run ;&lt;BR /&gt;
&lt;BR /&gt;
	%put d1;&lt;BR /&gt;
&lt;BR /&gt;
I successfully get the value : however when I look into my _test_ table it doesn't give me value that include " 23:59:59" &lt;BR /&gt;
&lt;BR /&gt;
as well as when I was trying to use %put statment to show me value of d1 , &lt;BR /&gt;
&lt;BR /&gt;
What am I missing here ? &lt;BR /&gt;
&lt;BR /&gt;
Thank you !</description>
      <pubDate>Mon, 11 Oct 2010 17:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15047#M1941</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-11T17:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro DATE MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15048#M1942</link>
      <description>this will display the resolved value of d1&lt;BR /&gt;
&lt;BR /&gt;
%put &amp;amp;d1.;</description>
      <pubDate>Mon, 11 Oct 2010 18:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15048#M1942</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2010-10-11T18:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro DATE MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15049#M1943</link>
      <description>Given your SAS DATA step assignment code, suggest the OP look at using the INTNX function to derive (in one statement), a "last month period ending DATETIME" value, using "DTMONTH" as argument #1 and "END" as argument three.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
intnx function month ending date site:sas.com</description>
      <pubDate>Mon, 11 Oct 2010 18:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15049#M1943</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-10-11T18:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro DATE MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15050#M1944</link>
      <description>Ah.. Thank you Phile</description>
      <pubDate>Mon, 11 Oct 2010 19:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15050#M1944</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-11T19:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro DATE MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15051#M1945</link>
      <description>Yep, watch out for those missing ampersands...!</description>
      <pubDate>Mon, 13 Dec 2010 15:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-DATE-MACRO-VARIABLE/m-p/15051#M1945</guid>
      <dc:creator>PatrickG</dc:creator>
      <dc:date>2010-12-13T15:29:00Z</dc:date>
    </item>
  </channel>
</rss>

