<?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: difference b/w actual and target dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/difference-b-w-actual-and-target-dates/m-p/882917#M348856</link>
    <description>&lt;P&gt;So in a data step, assign today's date and time to the variable&amp;nbsp;&lt;SPAN&gt;ACTION_ACTUAL_COMPLETE&lt;/SPAN&gt; if it is missing.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 11:07:23 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-06-29T11:07:23Z</dc:date>
    <item>
      <title>difference b/w actual and target dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-b-w-actual-and-target-dates/m-p/882905#M348852</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnreddy_0-1688030355152.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85452iA3276CC672B5635F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnreddy_0-1688030355152.png" alt="vnreddy_0-1688030355152.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could someone help me how can i get the difference b/w target and actual completion of dates.&lt;/P&gt;
&lt;P&gt;As per the image first row will give me -18 days whereas, the rest isn't giving me any overdue days. Could you please help me how to get the days count when actual is overdue with target date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For getting days i have used :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = safety_act; by INSPECTION; run;
data sa_date_diff;
set safety_act;
by INSPECTION;
days = intck('dtday',ACTION_TARGET_COMPLETE,ACTION_ACTUAL_COMPLETE);
put days=;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2023 10:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-b-w-actual-and-target-dates/m-p/882905#M348852</guid>
      <dc:creator>vnreddy</dc:creator>
      <dc:date>2023-06-29T10:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w actual and target dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-b-w-actual-and-target-dates/m-p/882909#M348853</link>
      <description>&lt;P&gt;The output is correct. After row one, since there is no ACTION_ACTUAL_COMPLETE, the number of DAYS should be missing. How could the answer be anything else?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 09:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-b-w-actual-and-target-dates/m-p/882909#M348853</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-29T09:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w actual and target dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-b-w-actual-and-target-dates/m-p/882915#M348855</link>
      <description>&lt;P&gt;Yes, you are right.&lt;/P&gt;
&lt;P&gt;I want to show the number of over due days from Target date something like 3 days if i consider 26th June to till date(today).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 10:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-b-w-actual-and-target-dates/m-p/882915#M348855</guid>
      <dc:creator>vnreddy</dc:creator>
      <dc:date>2023-06-29T10:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w actual and target dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-b-w-actual-and-target-dates/m-p/882917#M348856</link>
      <description>&lt;P&gt;So in a data step, assign today's date and time to the variable&amp;nbsp;&lt;SPAN&gt;ACTION_ACTUAL_COMPLETE&lt;/SPAN&gt; if it is missing.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 11:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-b-w-actual-and-target-dates/m-p/882917#M348856</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-29T11:07:23Z</dc:date>
    </item>
  </channel>
</rss>

