<?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: only update if last day of month - comparinge dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67678#M14656</link>
    <description>Answer: Use %sysfunc(today()) when using today() in macro.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%macro update;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
format LastDayOfMonth date.;&lt;BR /&gt;
LastDayOfMonth = intnx('month',today(),1)-1;&lt;BR /&gt;
call symput ('LastDayOfMonth',LastDayOfMonth);&lt;BR /&gt;
run;&lt;BR /&gt;
%put DEBUG::(&amp;amp;SYSMACRONAME)::Last day of month is &amp;amp;lastdayofmonth; &lt;BR /&gt;
%put DEBUG::(&amp;amp;SYSMACRONAME)::Today is %sysfunc(today());&lt;BR /&gt;
&lt;BR /&gt;
%if %sysfunc(today()) eq &amp;amp;lastdayofmonth %then %do;&lt;BR /&gt;
   %put DEBUG::(&amp;amp;SYSMACRONAME)::updated;&lt;BR /&gt;
%end;&lt;BR /&gt;
%else %do;&lt;BR /&gt;
   %put DEBUG::(&amp;amp;SYSMACRONAME)::Not updated;&lt;BR /&gt;
%end;&lt;BR /&gt;
&lt;BR /&gt;
%mend update;&lt;BR /&gt;
&lt;BR /&gt;
/* ---- Call update ---- */&lt;BR /&gt;
%update;&lt;BR /&gt;
&lt;BR /&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;
Log output:&lt;BR /&gt;
-----------------&lt;BR /&gt;
DEBUG::(UPDATE)::Last day of month is        18778&lt;BR /&gt;
DEBUG::(UPDATE)::Today is 18767&lt;BR /&gt;
DEBUG::(UPDATE)::Not updated</description>
    <pubDate>Fri, 20 May 2011 09:40:28 GMT</pubDate>
    <dc:creator>ChendhilKumar</dc:creator>
    <dc:date>2011-05-20T09:40:28Z</dc:date>
    <item>
      <title>only update if last day of month - comparinge dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67677#M14655</link>
      <description>data _null_;&lt;BR /&gt;
 format LastDayOfMonth date.;&lt;BR /&gt;
 LastDayOfMonth = intnx('month',today(),1)-1;&lt;BR /&gt;
 call symput ('LastDayOfMonth',LastDayOfMonth);&lt;BR /&gt;
run;&lt;BR /&gt;
%put &amp;amp;lastdayofmonth; (THIS IS A NUMBER)&lt;BR /&gt;
&lt;BR /&gt;
%macro updateL3;&lt;BR /&gt;
%if today() eq &amp;amp;lastdayofmonth %then %do;&lt;BR /&gt;
...&lt;BR /&gt;
%end;&lt;BR /&gt;
%mend;&lt;BR /&gt;
%updateL3;&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Required operator not found in expression: today() eq %eval(&amp;amp;lastdayofmonth)&lt;BR /&gt;
ERROR: The macro UPDATEL3 will stop executing.</description>
      <pubDate>Fri, 20 May 2011 08:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67677#M14655</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-05-20T08:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: only update if last day of month - comparinge dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67678#M14656</link>
      <description>Answer: Use %sysfunc(today()) when using today() in macro.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%macro update;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
format LastDayOfMonth date.;&lt;BR /&gt;
LastDayOfMonth = intnx('month',today(),1)-1;&lt;BR /&gt;
call symput ('LastDayOfMonth',LastDayOfMonth);&lt;BR /&gt;
run;&lt;BR /&gt;
%put DEBUG::(&amp;amp;SYSMACRONAME)::Last day of month is &amp;amp;lastdayofmonth; &lt;BR /&gt;
%put DEBUG::(&amp;amp;SYSMACRONAME)::Today is %sysfunc(today());&lt;BR /&gt;
&lt;BR /&gt;
%if %sysfunc(today()) eq &amp;amp;lastdayofmonth %then %do;&lt;BR /&gt;
   %put DEBUG::(&amp;amp;SYSMACRONAME)::updated;&lt;BR /&gt;
%end;&lt;BR /&gt;
%else %do;&lt;BR /&gt;
   %put DEBUG::(&amp;amp;SYSMACRONAME)::Not updated;&lt;BR /&gt;
%end;&lt;BR /&gt;
&lt;BR /&gt;
%mend update;&lt;BR /&gt;
&lt;BR /&gt;
/* ---- Call update ---- */&lt;BR /&gt;
%update;&lt;BR /&gt;
&lt;BR /&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;
Log output:&lt;BR /&gt;
-----------------&lt;BR /&gt;
DEBUG::(UPDATE)::Last day of month is        18778&lt;BR /&gt;
DEBUG::(UPDATE)::Today is 18767&lt;BR /&gt;
DEBUG::(UPDATE)::Not updated</description>
      <pubDate>Fri, 20 May 2011 09:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67678#M14656</guid>
      <dc:creator>ChendhilKumar</dc:creator>
      <dc:date>2011-05-20T09:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: only update if last day of month - comparinge dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67679#M14657</link>
      <description>ok thanks! have to review my sas macro i guess &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 20 May 2011 09:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67679#M14657</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-05-20T09:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: only update if last day of month - comparinge dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67680#M14658</link>
      <description>You can use CALL EXECUTE to conditionally invoke a SAS code-piece/program/macro from within your DATA step, thus avoiding the "date-related' conditional macro logic.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 20 May 2011 13:22:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67680#M14658</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-05-20T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: only update if last day of month - comparinge dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67681#M14659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find that, in macros, you need to be aware of if your date is in the numeric or in the literal format, which necessitates at least a pair of conversion macros. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Courier New; font-size: 10pt;"&gt;*-- two utilities --*;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; date2num(date, informat=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-family: Courier New; font-size: 10pt;"&gt;anydtdte.&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Courier New; font-size: 10pt;"&gt;*-- strip quotations and postfix d from date literal if any. --*;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Courier New; font-size: 10pt;"&gt;*-- quotations are intentionally doubled to prevent unmatched error --*;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; date=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(prxchange(s/[''""]d?//i,-1,&amp;amp;date));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(inputn(&amp;amp;date,&amp;amp;informat))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp; date2num;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; num2date(num, format=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-family: Courier New; font-size: 10pt;"&gt;date10.&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;, literal=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%local&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; n;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; n = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(putn(&amp;amp;num,&amp;amp;format));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%if&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; &amp;amp;literal &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%then&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;"&amp;amp;n"d&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%else&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; &amp;amp;n;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp; num2date;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Courier New; font-size: 10pt;"&gt;*-- main work --*;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; today();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt; font-family: Courier New;"&gt;num2date&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(today()))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp; today;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; LDoM(date=%&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt; font-family: Courier New;"&gt;today&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(intnx(mon,%&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt; font-family: Courier New;"&gt;date2num&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(&amp;amp;date),&lt;/SPAN&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;,e))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp; LDoM;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; IsLDoM(date=%&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt; font-family: Courier New;"&gt;today&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%sysevalf&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(&amp;amp;date = %&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt; font-family: Courier New;"&gt;LDoM&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(date=&amp;amp;date))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; IsLDoM;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Courier New; font-size: 10pt;"&gt;*-- check --*;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; test(date=);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%local&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; not;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; not = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%qsysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(ifc(%IsLDoM(date=&amp;amp;date),,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%str&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;(not )));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;date is &amp;amp;not.the last day of the month. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp; test;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; NOTE: %test(date="20may2011"d);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; NOTE: %test(date="31may2011"d);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Courier New; font-size: 10pt;"&gt;*-- on log&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000; font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; NOTE: "20may2011"d is not the last day of the month.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000; font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; NOTE: "31may2011"d is the last day of the month.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000; font-family: Courier New; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; --*;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 19:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-update-if-last-day-of-month-comparinge-dates/m-p/67681#M14659</guid>
      <dc:creator>chang_y_chung_hotmail_com</dc:creator>
      <dc:date>2011-05-20T19:25:26Z</dc:date>
    </item>
  </channel>
</rss>

