<?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: DATDIF FUNCTION in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DATDIF-FUNCTION/m-p/344371#M79132</link>
    <description>&lt;P&gt;Hey Patrick !!! thanks for the response.Issue resolved with your guidance..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Mar 2017 03:22:12 GMT</pubDate>
    <dc:creator>Bhargav_Movva</dc:creator>
    <dc:date>2017-03-26T03:22:12Z</dc:date>
    <item>
      <title>DATDIF FUNCTION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATDIF-FUNCTION/m-p/344267#M79106</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have a dataset with startdate and enddate of certain task.All i wanted to know is the no of days between start and end of each task.But my input sas dataset contains date as character variable,so when i applied datdif function on the start and end date vars imk getting errors.Even tried to apply input function before executing Datdif function.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 08:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATDIF-FUNCTION/m-p/344267#M79106</guid>
      <dc:creator>Bhargav_Movva</dc:creator>
      <dc:date>2017-03-25T08:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF FUNCTION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATDIF-FUNCTION/m-p/344289#M79113</link>
      <description>&lt;P&gt;"&lt;EM&gt;Even tried to apply input function before executing Datdif function.&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;You're on the right track with this one. All SAS calendar functions like datdif() and intck() require the data to be a SAS date or SAS datetime value (=number of days or number of seconds since 1/1/1960).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The INPUT() function will help you to convert a character string into such a numeric SAS date/datetime value. You just need to apply the correct INFORMAT which instructs SAS how to convert this string into a date/datetime value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should you require more guidance: You need to post sample data (a data step creating such data) and then explain us what you need.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 12:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATDIF-FUNCTION/m-p/344289#M79113</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-03-25T12:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: DATDIF FUNCTION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATDIF-FUNCTION/m-p/344371#M79132</link>
      <description>&lt;P&gt;Hey Patrick !!! thanks for the response.Issue resolved with your guidance..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2017 03:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATDIF-FUNCTION/m-p/344371#M79132</guid>
      <dc:creator>Bhargav_Movva</dc:creator>
      <dc:date>2017-03-26T03:22:12Z</dc:date>
    </item>
  </channel>
</rss>

