<?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: Alter variable value for the current month to value of another variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314347#M68447</link>
    <description>&lt;P&gt;Sounds like the value of your macro variable is&amp;nbsp;11/23/2016. &amp;nbsp;So SAS did what you asked it to do, it divided 11 by 23 and then by 2016. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want SAS to treat that string as a valid date value then you will need to use INPUT() function to convert it.&lt;/P&gt;
&lt;P&gt;What do you want the resulting macro variable's value to look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want an actual date value, ie the number of days since 01JAN1960? &amp;nbsp;Then just use the INPUT() function and you will get a number like 20781.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input("&amp;amp;l_sys_file",mmddyy10.)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or do you want the character string&amp;nbsp;11/23/2016? &amp;nbsp;That is the same thing that is in L_SYS_FILE macro variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"&amp;amp;l_sys_file"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you want the character string to include quotes?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"'&amp;amp;l_sys_file'"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or some other format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2016 18:22:22 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2016-11-25T18:22:22Z</dc:date>
    <item>
      <title>Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314287#M68426</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a lookup table that I use to set variable to the correct month-end day for each month of the year.&amp;nbsp; However,&amp;nbsp; I can't use the last day of the month for the Current month (in this case, NOV).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, how can I alter the current month value of the variable,&amp;nbsp;Nov_EPer,&amp;nbsp;to the value of another variable value, &amp;amp;L_SYS_FILE. ("Last System File" (date))?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is how I am assigning the last day for each month from the lookup table (&lt;FONT face="Courier New"&gt;LOAN_DETAIL_SRCES_CPER_TDY):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Sep_Per&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;: Sep_EPer&lt;FONT color="#ff0000"&gt;&amp;nbsp; &amp;lt;-----'09/30/2016'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; WORK.LOAN_DETAIL_SRCES_CPER_TDY;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Oct_Per&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;: Oct_EPer&lt;FONT color="#ff0000" face="Courier New"&gt;&amp;nbsp; &amp;lt;-----'10/31/2016'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; WORK.LOAN_DETAIL_SRCES_CPER_TDY;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Nov_Per&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;: Nov_EPer&lt;FONT color="#ff0000" face="Courier New"&gt;&amp;nbsp; &amp;lt;-----'11/30/2016'&amp;nbsp;&lt;STRONG&gt;(change it to&amp;nbsp;&amp;amp;L_SYS_FILE. = '11/23/2016')&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; WORK.LOAN_DETAIL_SRCES_CPER_TDY;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Dec_Per&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT color="#ff0000" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;: &lt;FONT color="#000000"&gt;DEC_EPer&lt;/FONT&gt;&lt;FONT color="#ff0000" face="Courier New"&gt;&amp;nbsp; &amp;lt;-----'12/31/2016'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New"&gt;So for November, I need&amp;nbsp; Nov_EPer = &amp;amp;L_SYS_FILE. Then of course, this logic must switch to Dec on 12/01/2016 and forward.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp; I have another varible that holds the current month number, &amp;amp;C_Month. = 11 so the code knows the current month number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New"&gt;Many Thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New"&gt;Kody_Devl&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 12:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314287#M68426</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-11-25T12:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314290#M68427</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
do month = 1 to 12;
  if month = month(today)
  then date = input("&amp;amp;l_sys_file.",mmddyy10.);
  else date = intnx('month',mdy(month,1,year(today())),0,'end');
  name = put(date,monname3.) !! 'eper';
  call symput(name,put(date,mmddyy10.));
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Corrected to use macro variable &amp;amp;l_sys_file instead of today() in current month. &lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 12:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314290#M68427</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-25T12:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314297#M68428</link>
      <description>&lt;P&gt;Sorry, the question is not clear to me. &amp;nbsp;Why are you using macro - which is only text - to do dates and months calculations? &amp;nbsp;Why are XXX_per variables character ('09/30/2016' is a character string). &amp;nbsp;Seems to me like your making it as complicated as possible. &amp;nbsp;Convert the dates as test to numerics so you can work with the properly. &amp;nbsp;Then assess the requirement, and see how using a datastep with all the associated functions and datatypes can simplfy the whole process.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 12:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314297#M68428</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-25T12:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314306#M68432</link>
      <description>&lt;P&gt;These variables are being passed into PROC SQL statements (later down the code line) and are matched to a Put(t2.Posting_Date, MMDDYY.10)&amp;nbsp; to retrieve the correct transactions.&amp;nbsp; I have to keep the formatting&lt;STRONG&gt; AS IS&lt;/STRONG&gt; to function in my proc SQL statements (which are currently working fine (it is just that I am passing the wrong dates for NOV '11/30/2016' instead of '11/23/2016').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not yet an expert on SAS dates and variable formatting but, what I have is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 14:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314306#M68432</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-11-25T14:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314319#M68436</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no need to be an expert on anything. &amp;nbsp;Base SAS is the programming language, it has all the datatypes and functions needed to do any process. &amp;nbsp;Macro is none of these, it is a text find and replace system which generates text which then goes into the SAS compiler. &amp;nbsp;As part of the Base SAS language, and understanding of datatypes is essential - as with any programming language. &amp;nbsp;Dates are number of days since a certain timepoint, times are numbers of seconds from midnight, and datetimes, are a combination thereof. &amp;nbsp;To work with these you can use simple mathmatical notation, or use more complicated functions. &amp;nbsp;None of the above is true with Macro language, hence why it is not a good medium for this task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you obviously know SQL - if that is why you are doing it this way - so you will be familiar with the concept of joining. &amp;nbsp;If we put the paramters you talk about into a dataset, we can then simply join that dataset to our data and perform all the necessary logic to arrive at our end product, for instance:&lt;/P&gt;
&lt;PRE&gt;data params;
  cat="range";
  start_dt="01JAN2014"d;
  end_dt="10JAN2014"d;
run;

proc sql;
  create table WANT as
  select  A.*
  from    HAVE A
  left join PARAMS B
  on      1=1
  where   B.START_DT &amp;lt;= A.ACTUAL_DATE &amp;lt; END_DT;
quit;&lt;/PRE&gt;
&lt;P&gt;In the above, you dont' even need to join it, you could just subquery. &amp;nbsp;Basically there is nothing in Macro that can't be done quicker, simpler in Base SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 15:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314319#M68436</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-25T15:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314321#M68437</link>
      <description>&lt;P&gt;Not sure why you need to truncate only the current month and not also truncate future months but you could probably just update your SQL statement to include the logic to pick which value to use by adding a CASE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select case when month(today())=11 then "&amp;amp;L_SYS_FILE"
            else Nov_Per
       end
  into: Nov_EPer
  from WORK.LOAN_DETAIL_SRCES_CPER_TDY
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Make similar changes for the other months.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should probably look into changing the whole system to be simplier so that it doesn't require all of these macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 15:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314321#M68437</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-11-25T15:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314334#M68439</link>
      <description>&lt;P&gt;I would like to make this work as it is the simplest option for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my attempt: FOCUS ON NOV&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;case&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;L_Period.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;11&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;L_SYS_FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;------ Note I did remove the "&lt;FONT face="Courier New"&gt;&amp;amp;L_SYS_FILE&lt;/FONT&gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; t1.Nov_Per&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;: Nov_EPer &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; WORK.LOAN_DETAIL_SRCES_CPER_TDY t1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;select Dec_Per&lt;/P&gt;&lt;P&gt;into: Dec_EPer&lt;/P&gt;&lt;P&gt;from WORK.LOAN_DETAIL_SRCES_CPER_TDY;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%Put&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Period 11 is &amp;amp;Nov_EPer.;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;HERE is the LOG Result for &lt;FONT face="Courier New"&gt;&amp;amp;Nov_EPer.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;76&lt;/P&gt;&lt;P&gt;77 %Put Period 11 is &amp;amp;Nov_EPer.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period 11 is 0.000237 &lt;STRONG&gt;&amp;lt;------ This should be 11/23/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 16:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314334#M68439</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-11-25T16:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314347#M68447</link>
      <description>&lt;P&gt;Sounds like the value of your macro variable is&amp;nbsp;11/23/2016. &amp;nbsp;So SAS did what you asked it to do, it divided 11 by 23 and then by 2016. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want SAS to treat that string as a valid date value then you will need to use INPUT() function to convert it.&lt;/P&gt;
&lt;P&gt;What do you want the resulting macro variable's value to look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want an actual date value, ie the number of days since 01JAN1960? &amp;nbsp;Then just use the INPUT() function and you will get a number like 20781.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input("&amp;amp;l_sys_file",mmddyy10.)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or do you want the character string&amp;nbsp;11/23/2016? &amp;nbsp;That is the same thing that is in L_SYS_FILE macro variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"&amp;amp;l_sys_file"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you want the character string to include quotes?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"'&amp;amp;l_sys_file'"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or some other format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 18:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314347#M68447</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-11-25T18:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314357#M68451</link>
      <description>&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your last post was very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is what I need (works)!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* NOV */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;case&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;L_Period.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;11&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;l_sys_file"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Put(t1.Nov_Per, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;mmddyy10.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;: Nov_EPer &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; WORK.LOAN_DETAIL_SRCES_CPER_TDY t1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;PS,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;I need all of the variables&amp;nbsp;because I am processing 12 months at once (the whole year).&amp;nbsp; Hence, I need the 12 variables.&amp;nbsp; For post period months (ie Dec (months in future)) there are never any DEC transactions to pull so it doesn't matter is the query is using 12/31/2016.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;The code will now self correct for any L_SYS_FILE date without code changes from month-to-month. (and I am starting to understand the formatting)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New"&gt;Thank you sooooo much.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 19:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314357#M68451</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-11-25T19:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314822#M68623</link>
      <description>&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why would this query return&amp;nbsp;t1.In_Status_Day = 12/31/2015?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CREATE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TABLE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; WORK.QUERY_FOR_LOAN_DETAIL_STATUS &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SELECT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; t1.Loan_Number, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;t1.In_Status_Day&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;FROM&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; WORK.LOAN_DETAIL_STATUS t1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;WHERE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Put(t1.In_Status_Day, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;mmddyy10.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;BETWEEN&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'12/01/2016'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AND&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'12/31/2016'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 14:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314822#M68623</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-11-28T14:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314826#M68626</link>
      <description>And why wouldn't it?&lt;BR /&gt;'12/31' definitely comes after '12/01' so it is larger than the lower bound.&lt;BR /&gt;'12/31/2015' is almost exactly the same string as '12/31/2016', it just differs in the last characters. Since '5' is less than '6' it is definitely less than the upper bound.&lt;BR /&gt;&lt;BR /&gt;Why are you comparing date values to character strings?  If you want to do that then make sure your character strings are in YYYYMMDD format so that the lexical ordering matches the chronological ordering.&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Nov 2016 14:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314826#M68626</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-11-28T14:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314828#M68627</link>
      <description>&lt;P&gt;I am an Old dog.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still thinking dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My&amp;nbsp;new brain&amp;nbsp;links are slowly connecting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 14:52:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314828#M68627</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-11-28T14:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alter variable value for the current month to value of another variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314909#M68645</link>
      <description>&lt;P&gt;rather than&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;WHERE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Put(t1.In_Status_Day, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;mmddyy10.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;BETWEEN&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#800080"&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'12/01/2016'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'12/31/2016'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;consider trying&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;WHERE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;t1.In_Status_Day&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;BETWEEN&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#800080"&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'01Dec2016'd&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;AND&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'31Dec2016'd ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this demonstrates date constants&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 18:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alter-variable-value-for-the-current-month-to-value-of-another/m-p/314909#M68645</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2016-11-28T18:00:05Z</dc:date>
    </item>
  </channel>
</rss>

