<?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 - enhance alignment options with '15' in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143500#M38169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create your own function using proc fcmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc fcmp outlib=sasuser.functions.sample;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; function month15(start_date);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n=intnx('month', start_date, 0, 'b')+14;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (n);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; endsub;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options cmplib=(sasuser.functions);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let ds_cur_d = %sysfunc(today());&lt;/P&gt;&lt;P&gt;%put &amp;amp;ds_cur_d;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let _15TH_DT&amp;nbsp; = %sysfunc(month15(&amp;amp;ds_cur_d), mmddyyd10.);&lt;/P&gt;&lt;P&gt;%put &amp;amp;_15TH_DT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2014 20:07:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-06-16T20:07:05Z</dc:date>
    <item>
      <title>Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143498#M38167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Our health care company counts membership based on the 15th of the month.&amp;nbsp; Currently, INTNX will return dates as of the middle of the month using the 'm' alignment argument.&amp;nbsp; But this returns 15 or 16 depending on the month.&amp;nbsp; I'd like to be able to specify the 15th (or even any day of the month) in the alignment argument.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: %value; font-size: 12pt;"&gt;&lt;SPAN&gt;Currently, we have to jump through a few hoops to get the job done.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: %value; font-size: 12pt;"&gt;%let ds_cur_d = today();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: %value; font-size: 12pt;"&gt;&lt;SPAN style="color: black;"&gt;%let _15TH_DT&amp;nbsp; =&lt;/SPAN&gt; &lt;SPAN style="color: black;"&gt;%&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;sysfunc&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;mdy&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(%&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;sysfunc&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(month(&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ds_cur_d&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;)), 15, %&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;sysfunc&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(year(&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ds_cur_d&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;))), mmddyyd10.);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: %value;"&gt;Is there an easier way to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 19:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143498#M38167</guid>
      <dc:creator>KasDunphy</dc:creator>
      <dc:date>2014-06-16T19:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143499#M38168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you using the _15th_dt variable?&lt;/P&gt;&lt;P&gt;From the online help:&lt;/P&gt;&lt;P&gt;&lt;A name="a002604888"&gt;&lt;/A&gt;date4=intnx('month','01jan95'd,1,'sameday');&lt;/P&gt;&lt;P&gt;put date4 / date4 date7.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you start with a 15th of the month, sameday goes to the 15th.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 20:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143499#M38168</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-16T20:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143500#M38169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create your own function using proc fcmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc fcmp outlib=sasuser.functions.sample;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; function month15(start_date);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n=intnx('month', start_date, 0, 'b')+14;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (n);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; endsub;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options cmplib=(sasuser.functions);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let ds_cur_d = %sysfunc(today());&lt;/P&gt;&lt;P&gt;%put &amp;amp;ds_cur_d;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let _15TH_DT&amp;nbsp; = %sysfunc(month15(&amp;amp;ds_cur_d), mmddyyd10.);&lt;/P&gt;&lt;P&gt;%put &amp;amp;_15TH_DT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 20:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143500#M38169</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-16T20:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143501#M38170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good approach, and it can be done, but it's a little more complex than that.&amp;nbsp; If the start_date is the 1st day of the month, for example, the function has to return the 15th day of the prior month (not the 15th day of the current month).&amp;nbsp; A tweak to the third parameter of INTNX might do the trick.&amp;nbsp; Instead of 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 - (day(start_date) &amp;lt; 15)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 20:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143501#M38170</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-06-16T20:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143502#M38171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wondering why 'month.15' not working while the shift index seems to work on 'year' or 'week'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 20:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143502#M38171</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-06-16T20:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143503#M38172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="5068" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; I think it would be day15 wouldn't it?&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="5253" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; How do you know that the first resolves to the 15 of the previous month? You can probably extend the function above to take the exact same parameters as intnx but a custom one as well that would do 15, based on the question, didn't see the need to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 20:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143503#M38172</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-16T20:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143504#M38173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;, day15 would be 15-day intervals starting on Sunday? While I meant (also OP?) is the 15th day of every month? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 20:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143504#M38173</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-06-16T20:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143505#M38174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True...I'm not too familiar with the Interval custom options, personally I would just set it to beginning and add 15 &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 21:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143505#M38174</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-16T21:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143506#M38175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's my interpretation of the problem ... if you count as of the 15th of the month to me that means that your time periods run from the 15th of the previous month to the the 15th of the current month (one of them gets included, and one of them gets included). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution matches the original posted logic.&amp;nbsp; It's just that to me, if you are using the 25th day of one month or the 5th day of the next month, you should be getting the same starting date.&amp;nbsp; Perhaps that's not what the poster intended however ... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 21:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143506#M38175</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-06-16T21:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143507#M38176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your feedback.&amp;nbsp; Because our team uses&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px; background-color: #ffffff;"&gt; _15TH_DT&lt;/SPAN&gt; a lot , it makes sense to create a macro and share it.&amp;nbsp; Thanks Reeza.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 21:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143507#M38176</guid>
      <dc:creator>KasDunphy</dc:creator>
      <dc:date>2014-06-19T21:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Intnx - enhance alignment options with '15'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143508#M38177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what your exact requirements are but it should work if you subtract 15 and then use INTNX to find the beginning of the right month and then add back 14 days to get to the 15th.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; xx ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; day = &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;'01JAN2014'd&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;'16FEB2014'd&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; start = intnx(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'month'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,day-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;15&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;)+&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;14&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; end = intnx(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'month'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,day-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;15&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;)+&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;14&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; inside = (start &amp;lt; day &amp;lt;= end);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; day start end &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;yymmdd10.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You could make the value 15 into a macro variable or the parameter to a macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; intnx_day_of_month(date,day,month);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; intnx(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'month'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&amp;amp;date - &amp;amp;day,&amp;amp;month)+&amp;amp;day-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; yy ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; day = &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;'01JAN2014'd&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;'16FEB2014'd&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; start = %&lt;STRONG&gt;&lt;EM&gt;intnx_day_of_month&lt;/EM&gt;&lt;/STRONG&gt;(day,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;15&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; end = %&lt;STRONG&gt;&lt;EM&gt;intnx_day_of_month&lt;/EM&gt;&lt;/STRONG&gt;(day,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;15&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; inside = (start &amp;lt; day &amp;lt;= end);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; day start end &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;yymmdd10.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;compare&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=xx &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;compare&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=yy;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 23:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Intnx-enhance-alignment-options-with-15/m-p/143508#M38177</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-06-19T23:29:46Z</dc:date>
    </item>
  </channel>
</rss>

