<?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 set up a tracking system to track your vacation time? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85798#M18413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LinLin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some details may help. Such as 10 hours PTO per month, how you count it? it is calculated by workdays or hours&amp;nbsp; or just by month, so even you show up for only one day (say the last day of the month), you still get 10 hour PTO?&amp;nbsp; what is your incoming data look like?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Mar 2013 15:49:54 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2013-03-22T15:49:54Z</dc:date>
    <item>
      <title>How to set up a tracking system to track your vacation time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85797#M18412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;If you get 10 hours vacation time each month and the maximum allowed is 100 hours. Is it possible to track the time&amp;nbsp; by SAS? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 15:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85797#M18412</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2013-03-22T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a tracking system to track your vacation time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85798#M18413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LinLin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some details may help. Such as 10 hours PTO per month, how you count it? it is calculated by workdays or hours&amp;nbsp; or just by month, so even you show up for only one day (say the last day of the month), you still get 10 hour PTO?&amp;nbsp; what is your incoming data look like?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 15:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85798#M18413</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-03-22T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a tracking system to track your vacation time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85799#M18414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linlin&lt;/P&gt;&lt;P&gt;do you already record activities, or hours worked, in some way?&lt;/P&gt;&lt;P&gt;If so, we just need to extend that process....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 09:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85799#M18414</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-03-24T09:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a tracking system to track your vacation time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85800#M18415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, let's have some fun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't feel that SAS is all that great as a data entry solution, so how do you enter how many hours of holidays you've taken in a month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming we use the following code to calculate the vacation days available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data VacationHours;&lt;BR /&gt; retain PotentialDays 0;&lt;BR /&gt; format StartDate CurrentDate date.;&lt;BR /&gt; StartDate = '08AUG1978'd;&lt;BR /&gt; CurrentDate = date();&lt;/P&gt;&lt;P&gt; do i = 1 to intck('MONTH', StartDate, CurrentDate);&lt;BR /&gt;&amp;nbsp; PotentialDays = PotentialDays + 10;&lt;BR /&gt;&amp;nbsp; ActualDays = min(PotentialDays, 100);&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(For my actual start date of Aug 8, 1978, I should have 4,150 vacation days, but thanks to your harsh policies I only have 100!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all we need to do is merge in the days taken, no?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 13:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85800#M18415</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-03-24T13:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a tracking system to track your vacation time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85801#M18416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@linlin: If you don't need a historical record, you might be able to get by with something simple like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. create the original file showing the hours you currently have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname art "c:\art";&lt;/P&gt;&lt;P&gt;data art.hours_have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input hours;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;95&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. create a program that you will run, say thru window's scheduler, on whichever day the new 10 hours are added:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname art "c:\art";&lt;/P&gt;&lt;P&gt;data art.hours_have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; hours=max(100,hours+10);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. create a macro to deduct hours taken:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro vacation(time);&lt;/P&gt;&lt;P&gt;&amp;nbsp; libname art "c:\art";&lt;/P&gt;&lt;P&gt;&amp;nbsp; data art.hours_have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set art.hours_have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hours=hours-&amp;amp;time.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;%mend vacation;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Run the macro each time you take a vacation:&lt;/P&gt;&lt;P&gt;%vacation(5)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 14:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85801#M18416</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-03-24T14:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a tracking system to track your vacation time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85802#M18417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your time and help! I use an excel file similar to the attached file to track my vacation time. I am thinking of switching to SAS. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 22:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-up-a-tracking-system-to-track-your-vacation-time/m-p/85802#M18417</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2013-03-24T22:03:14Z</dc:date>
    </item>
  </channel>
</rss>

