<?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: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163533#M12594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're looking for a way to calculate "working days" (calendar days minus weekends and holidays), perhaps you can use this custom &lt;STRONG&gt;networkdays&lt;/STRONG&gt; function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2011/05/09/calculating-the-number-of-working-days-between-two-dates/" title="http://blogs.sas.com/content/sasdummy/2011/05/09/calculating-the-number-of-working-days-between-two-dates/"&gt; Calculating the number of working days between two dates - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 13:38:45 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2014-02-05T13:38:45Z</dc:date>
    <item>
      <title>how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163526#M12587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please assist.I could not use INTCK function as there's only one column from which i need the calculation to start if the day is weekday.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 09:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163526#M12587</guid>
      <dc:creator>sharath_rk</dc:creator>
      <dc:date>2014-02-05T09:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163527#M12588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't understand your issue.&lt;/P&gt;&lt;P&gt;Please post some sample input and desired output data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 10:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163527#M12588</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-05T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163528#M12589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the two columns below. Column 2 is a calculated field which should show as Y for weekday and N for weekend/holiday. However it is showing as Y for 25th &amp;amp; 26th Jan which are weekends. How do i exclude weekends before i start the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="240"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="176"&gt;Column 1&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="64"&gt;Column 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;25JAN2014:00:06:13.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;25JAN2014:00:08:32.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;25JAN2014:00:14:15.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;25JAN2014:00:18:39.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;25JAN2014:00:18:40.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;26JAN2014:14:58:33.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;26JAN2014:14:58:47.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;26JAN2014:14:59:18.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;26JAN2014:15:01:15.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;27JAN2014:00:01:10.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;27JAN2014:00:03:46.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;27JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;27JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;28JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;28JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;28JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;28JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;29JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;29JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;29JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;30JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;30JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;30JAN2014:00:00:00.000000&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 10:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163528#M12589</guid>
      <dc:creator>sharath_rk</dc:creator>
      <dc:date>2014-02-05T10:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163529#M12590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, if you are relying on US holidays, use the holiday() function.&lt;/P&gt;&lt;P&gt;If not, you need some kind of calendar data set/user defined format to handle holidays outside the US.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163529#M12590</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-05T11:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163530#M12591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. How can i exclude weekends from the colum 1 having date &amp;amp; time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163530#M12591</guid>
      <dc:creator>sharath_rk</dc:creator>
      <dc:date>2014-02-05T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163531#M12592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on your final technique, but usually involving the datepart() function can be of help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163531#M12592</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-05T11:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163532#M12593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further,&amp;nbsp; the &lt;SPAN style="font-family: 'courier new', courier;"&gt;weekday()&lt;/SPAN&gt; function returns a day number (1-7) which you can test to exclude weekends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201173.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201173.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 13:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163532#M12593</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2014-02-05T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163533#M12594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're looking for a way to calculate "working days" (calendar days minus weekends and holidays), perhaps you can use this custom &lt;STRONG&gt;networkdays&lt;/STRONG&gt; function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2011/05/09/calculating-the-number-of-working-days-between-two-dates/" title="http://blogs.sas.com/content/sasdummy/2011/05/09/calculating-the-number-of-working-days-between-two-dates/"&gt; Calculating the number of working days between two dates - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 13:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163533#M12594</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-02-05T13:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163534#M12595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked. Thank you Amir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would be my next step. Will check the custom networkdays function. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 13:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163534#M12595</guid>
      <dc:creator>sharath_rk</dc:creator>
      <dc:date>2014-02-05T13:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the calculation on a column having datetime to identify weekdays first post which the calculation should start</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163535#M12596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the WeekDay() function. Give a date value, it returns 1-7, where 1=Sunday, 7=Saturday indicating the day of the week&lt;/P&gt;&lt;P&gt;To convert from Date-Time, use the DatePart() function,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;isweekday = (WeekDay(DatePart(dtvalue)) IN (2..6)); * think I got the parens right ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns, 0 (false), or 1(true).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 16:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-start-the-calculation-on-a-column-having-datetime-to/m-p/163535#M12596</guid>
      <dc:creator>rcwright</dc:creator>
      <dc:date>2014-12-11T16:10:46Z</dc:date>
    </item>
  </channel>
</rss>

