<?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: Previous working day in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/826041#M326281</link>
    <description>&lt;P&gt;Thank you so much!&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 20:09:04 GMT</pubDate>
    <dc:creator>hhchenfx</dc:creator>
    <dc:date>2022-07-28T20:09:04Z</dc:date>
    <item>
      <title>Previous working day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/825964#M326243</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I would like SAS to return previous working day.&lt;/P&gt;
&lt;P&gt;Can you please help?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 15:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/825964#M326243</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2022-07-28T15:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Previous working day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/825976#M326250</link>
      <description>&lt;P&gt;Define "working day".&lt;/P&gt;
&lt;P&gt;There really is not a universal definition for that. When I was in the US Army every day was a "working day".&lt;/P&gt;
&lt;P&gt;If Holidays are to be excluded then which ones, and in which country (some holidays of the same name are celebrated on different calendar dates in different countries).&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 15:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/825976#M326250</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-28T15:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Previous working day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/826038#M326278</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I meant simple US business day or normal week day.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 19:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/826038#M326278</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2022-07-28T19:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous working day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/826039#M326279</link>
      <description>&lt;P&gt;The basic function is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;prevWeekDay = intnx("WEEKDAY", myDate, -1);&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 19:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/826039#M326279</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2022-07-28T19:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Previous working day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/826041#M326281</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 20:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/826041#M326281</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2022-07-28T20:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous working day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/826061#M326286</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49486"&gt;@hhchenfx&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I meant simple US business day or normal week day.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'll reiterate: there ain't such a thing.&amp;nbsp; If you mean to exclude Federal Holidays on the observed days that's fine, say so but many organization pick and choose which to follow. The SAS Holidayname function returns the names of holidays associated with a given date. So you can test a candidate date to see if it is one of the holidays you expect to observe. If it is then use the INTNX function to get the previous day to test.&lt;/P&gt;
&lt;P&gt;When I worked for a University they did not observe Columbus Day or Veterans day.&lt;/P&gt;
&lt;P&gt;Many many companies work every day of a typical week and only observe a very few holidays.&lt;/P&gt;
&lt;P&gt;A survey company I worked for that typically worked Saturdays&amp;nbsp; would not work on Saturdays that coincided with certain sporting events.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 21:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Previous-working-day/m-p/826061#M326286</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-28T21:02:36Z</dc:date>
    </item>
  </channel>
</rss>

