<?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: Need to Add 4 business days to a date. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566298#M159125</link>
    <description>You have to create a custom calendar for yourself first and then you use that. &lt;BR /&gt;&lt;BR /&gt;In general, INTNX() is used to increment/decrement dates. &lt;BR /&gt;&lt;BR /&gt;See the solution from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/220719"&gt;@EEng&lt;/a&gt; here:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Finding-the-next-working-day-with-a-custom-calendar/td-p/477859" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Finding-the-next-working-day-with-a-custom-calendar/td-p/477859&lt;/A&gt;</description>
    <pubDate>Fri, 14 Jun 2019 21:32:39 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-06-14T21:32:39Z</dc:date>
    <item>
      <title>Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566297#M159124</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add 4 business days to a date, where i need to exclude the weekends and the U.S holidays, floated, or observed.&lt;/P&gt;&lt;P&gt;For eg : if i have a date : 08th Nov, 2018, it should return me 15th Nov2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because as 11th Nov,2018 is a verteran day, which is on sunday the holiday moved to 12th Nov,2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so my date is 08thNov,2018.&lt;/P&gt;&lt;P&gt;Day 1 : 09nov,2018&lt;/P&gt;&lt;P&gt;Day2 : 13nov,2018&lt;/P&gt;&lt;P&gt;Day3 : 14nov,2018&lt;/P&gt;&lt;P&gt;day4 : 15nov,2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it should skip 10,11,12....as 10 is sat,11 is sunday, and 12 is a us holiday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566297#M159124</guid>
      <dc:creator>sas_coders</dc:creator>
      <dc:date>2019-06-14T21:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566298#M159125</link>
      <description>You have to create a custom calendar for yourself first and then you use that. &lt;BR /&gt;&lt;BR /&gt;In general, INTNX() is used to increment/decrement dates. &lt;BR /&gt;&lt;BR /&gt;See the solution from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/220719"&gt;@EEng&lt;/a&gt; here:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Finding-the-next-working-day-with-a-custom-calendar/td-p/477859" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Finding-the-next-working-day-with-a-custom-calendar/td-p/477859&lt;/A&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566298#M159125</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-14T21:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566299#M159126</link>
      <description>This is also a good reference:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-Tip-Generating-Holiday-Lists/ta-p/557799?title=Generating_Holiday_Lists" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-Tip-Generating-Holiday-Lists/ta-p/557799?title=Generating_Holiday_Lists&lt;/A&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566299#M159126</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-14T21:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566301#M159128</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	xd = today();
	date1=input(put(xd,yymmdd8.),yymmdd8.);
 	datep4 = intnx('day',date1,+4);

put date1;
put datep4;
	format date1 date9. datep4 date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566301#M159128</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-06-14T21:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566304#M159130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;But this solution doesnt work, because this solution is only checking if the initial date is equal to the holiday, if yes then skip that, but what if my next date is a holiday, it doesn't check that, as i said i need to add 4 business days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varun&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566304#M159130</guid>
      <dc:creator>sas_coders</dc:creator>
      <dc:date>2019-06-14T21:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566306#M159131</link>
      <description>&lt;P&gt;Need to remove the weekends and the holidays as well.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566306#M159131</guid>
      <dc:creator>sas_coders</dc:creator>
      <dc:date>2019-06-14T21:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566307#M159132</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, by looking at this i was able to create the list of working and non working days, but now how to add 4 days in my dataset but looking at this data ?&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;</description>
      <pubDate>Fri, 14 Jun 2019 22:43:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566307#M159132</guid>
      <dc:creator>sas_coders</dc:creator>
      <dc:date>2019-06-14T22:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566308#M159133</link>
      <description>&lt;P&gt;Actually, the last example here is what you need:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_intervals_sect008.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_intervals_sect008.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;PRE class="xisDoc-code"&gt;options intervalds=(BankingDays=BankDayDS);
data BankDayDS(keep=BEGIN);
   start = '15DEC1998'D;
   stop  = '15JAN2002'D;
   nwkdays = INTCK('WEEKDAY',start,stop);
   do i = 0 to nwkdays;
      BEGIN = INTNX('WEEKDAY',start,i);
      year = YEAR(BEGIN);
      if BEGIN ne HOLIDAY("NEWYEAR",year) and
         BEGIN ne HOLIDAY("MLK",year) and
         BEGIN ne HOLIDAY("USPRESIDENTS",year) and
         BEGIN ne HOLIDAY("MEMORIAL",year) and
         BEGIN ne HOLIDAY("USINDEPENDENCE",year) and
         BEGIN ne HOLIDAY("LABOR",year) and
         BEGIN ne HOLIDAY("COLUMBUS",year) and
         BEGIN ne HOLIDAY("VETERANS",year) and
         BEGIN ne HOLIDAY("THANKSGIVING",year) and
         BEGIN ne HOLIDAY("CHRISTMAS",year) then
      output;
   end;
   format BEGIN DATE.;
run;
&lt;/PRE&gt;
&lt;PRE class="xisDoc-code"&gt;data CountDays;
   start = '01JAN1999'D;
   stop  = '31DEC2001'D;
   ActualDays = INTCK('DAYS',start,stop);
   Weekdays   = INTCK('WEEKDAYS',start,stop);
   BankDays   = INTCK('BankingDays',start,stop);
   format start stop DATE.;
run;
&lt;/PRE&gt;
&lt;PRE class="xisDoc-code"&gt;title 'Methods of Counting Days';
proc print data=CountDays;
run;&lt;/PRE&gt;
&lt;P&gt;They're using INTCK, you'll want INTNX() but that should be an easy switch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278020"&gt;@sas_coders&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Need to remove the weekends and the holidays as well.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566308#M159133</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-14T21:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566309#M159134</link>
      <description>&lt;P&gt;I gave you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278020"&gt;@sas_coders&lt;/a&gt; how to add 4 days to your date value.&amp;nbsp; you can use&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; link to determine if your date value is a holiday or such that needs that date values criteria changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566309#M159134</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-06-14T21:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566310#M159135</link>
      <description>&lt;P&gt;okay, the point is while adding each day to my date, i need to check if that day is a holiday/weekend , if that is a holiday/weekend i need to start checking again, if not then add one more day and check if that is a holiday/weekend....untill 4 days are completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, this won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;date1&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;put&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;xd&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;yymmdd8&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;yymmdd8&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
 	datep4 &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;intnx&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'day'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;date1&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;4&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:56:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566310#M159135</guid>
      <dc:creator>sas_coders</dc:creator>
      <dc:date>2019-06-14T21:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566314#M159139</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278020"&gt;@sas_coders&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Including holidays requires unfortunately a bit of extra coding. Below two links to two different approaches which you could make work for you with not much change required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/exclude-holidays-from-the-count-of-days/td-p/358369" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/exclude-holidays-from-the-count-of-days/td-p/358369&lt;/A&gt;&amp;nbsp;(accepted solution)&lt;/P&gt;
&lt;P&gt;The main bit to change would be a definition of the date range for which you need a custom calendar.&lt;/P&gt;
&lt;PRE&gt;do date = '01jan1971'd to '31dec2070'd ;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or here the 2nd approach:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2011/05/09/calculating-the-number-of-working-days-between-two-dates/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2011/05/09/calculating-the-number-of-working-days-between-two-dates/&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 22:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566314#M159139</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-06-14T22:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566315#M159140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i do not want to count the number of Business days,i want to add 4 business days to my date.&lt;/P&gt;&lt;P&gt;That becomes little tough, as while adding single day to my date, i need to check if that is a holiday/weekend or not, if that is weekend/holiday continue adding untill 4 days, if it is not a weekend/holiday, add a day again and then repeat the process....untill 4 business days are added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope my question is clear.&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;</description>
      <pubDate>Fri, 14 Jun 2019 22:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566315#M159140</guid>
      <dc:creator>sas_coders</dc:creator>
      <dc:date>2019-06-14T22:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566321#M159142</link>
      <description>&lt;P&gt;Your question is clear, but I think you're missing the point, the intervals and calculations needed to get the intervals set up is the same regardless for duration or increment - the underlying functions use the same definitions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the linked answers should be relevant to what you're trying to do, and unfortunately this isn't simple, primarily because dates never are and different countries have different holidays and different companies treat holidays differently. So trying to find a single solution for everyone is impossible, and SAS has instead added the option to create your custom calendars. Creating that custom interval will solve your problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a solution that should work exactly as you need but I haven't tested it. Either way, should be a good start to getting you to where you need to be.&lt;/P&gt;
&lt;P&gt;Good Luck.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options intervalds=(BankingDays=BankDayDS);
data BankDayDS(keep=BEGIN);
   start = '01Jan2019'D;
   stop  = '31DEC2022'D;
   nwkdays = INTCK('WEEKDAY',start,stop);
   do i = 0 to nwkdays;
      BEGIN = INTNX('WEEKDAY',start,i);
      year = YEAR(BEGIN);
      if BEGIN ne HOLIDAY("NEWYEAR",year) and
         BEGIN ne HOLIDAY("MLK",year) and
         BEGIN ne HOLIDAY("USPRESIDENTS",year) and
         BEGIN ne HOLIDAY("MEMORIAL",year) and
         BEGIN ne HOLIDAY("USINDEPENDENCE",year) and
         BEGIN ne HOLIDAY("LABOR",year) and
         BEGIN ne HOLIDAY("COLUMBUS",year) and
         BEGIN ne HOLIDAY("VETERANS",year) and
         BEGIN ne HOLIDAY("THANKSGIVING",year) and
         BEGIN ne HOLIDAY("CHRISTMAS",year) then
      output;
   end;
   format BEGIN DATE.;
run;

data want;
set have;

new_date = intnx('BankingDays', date, 4);

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278020"&gt;@sas_coders&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i do not want to count the number of Business days,i want to add 4 business days to my date.&lt;/P&gt;
&lt;P&gt;That becomes little tough, as while adding single day to my date, i need to check if that is a holiday/weekend or not, if that is weekend/holiday continue adding untill 4 days, if it is not a weekend/holiday, add a day again and then repeat the process....untill 4 business days are added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope my question is clear.&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;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 22:58:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/566321#M159142</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-14T22:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/620414#M182304</link>
      <description>&lt;DIV id="messagebodydisplay_0_12" class="lia-message-body lia-component-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;There is a blog post where I show how to add or subtract a number of business days to a date. The approach described there should work in any country or any business or other jurisdiction that operates on its own workday calendar. It's based on dynamically creating a user-defined format listing days-off and workdays as OTHER category, and then creating a simple user-defined function or macro. Here is the blog link:&lt;/P&gt;
&lt;H1 id="toc-hId-1957462178" class="post-title item fn"&gt;&lt;A title="Increment or decrement date by a number of business days" href="https://blogs.sas.com/content/sgf/2020/01/27/shifting-a-date-by-a-given-number-of-workdays/" target="_self" rel="nofollow noopener noreferrer"&gt;Shifting a date by a given number of workdays&lt;/A&gt;&lt;/H1&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Jan 2020 02:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/620414#M182304</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-01-28T02:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Add 4 business days to a date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/620671#M182416</link>
      <description>Any reason why you wouldn't create a custom calendar/interval that you could then call using INTNX()?</description>
      <pubDate>Tue, 28 Jan 2020 21:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-Add-4-business-days-to-a-date/m-p/620671#M182416</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-28T21:26:06Z</dc:date>
    </item>
  </channel>
</rss>

