<?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 between multiple dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-multiple-dates/m-p/882858#M348830</link>
    <description>&lt;P&gt;Your code in the attachment shows "date" as character values. So you really need to define what you mean by difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the values are actual SAS date values then you can get all sorts of intervals from different date values. If the values were actual SAS date values then you could use the DIF function to get number of days since the previous record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445696"&gt;@Divyanshu870&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello everyone&lt;BR /&gt;Can u help me in finding difference between the dates&lt;BR /&gt;I have attached the file&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 19:59:54 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-06-28T19:59:54Z</dc:date>
    <item>
      <title>Difference between multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-multiple-dates/m-p/882844#M348828</link>
      <description>Hello everyone&lt;BR /&gt;Can u help me in finding difference between the dates&lt;BR /&gt;I have attached the file</description>
      <pubDate>Wed, 28 Jun 2023 18:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-multiple-dates/m-p/882844#M348828</guid>
      <dc:creator>Divyanshu870</dc:creator>
      <dc:date>2023-06-28T18:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-multiple-dates/m-p/882853#M348829</link>
      <description>&lt;P&gt;Some of us (like me) will not download attached files, so I can't see your data. Please include the data in your reply as plain text, following these &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;examples and instructions&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, please be specific and explain what you want as output, provide an example of the "difference" or "differences" you want to see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 19:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-multiple-dates/m-p/882853#M348829</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-28T19:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-multiple-dates/m-p/882858#M348830</link>
      <description>&lt;P&gt;Your code in the attachment shows "date" as character values. So you really need to define what you mean by difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the values are actual SAS date values then you can get all sorts of intervals from different date values. If the values were actual SAS date values then you could use the DIF function to get number of days since the previous record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445696"&gt;@Divyanshu870&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello everyone&lt;BR /&gt;Can u help me in finding difference between the dates&lt;BR /&gt;I have attached the file&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 19:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-multiple-dates/m-p/882858#M348830</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-28T19:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-multiple-dates/m-p/882861#M348831</link>
      <description>&lt;P&gt;Why do to the trouble to make a photograph of text, store it in a PDF file and then upload the file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just copy and past the text into the forum editor.&amp;nbsp; Use the Insert SAS Code icon to get a pop-up window to paste/edit the code so its formatting is retained.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your example program is not reading in dates.&amp;nbsp; It is instead making a character variable named DATE.&amp;nbsp; To make a numeric variable use the DDMMYY informat.&amp;nbsp; Then attach a format to the numeric variable so it prints in a way that humans will understand. Avoid using DDMMYY or MMDDYY format as either one will confuse half of your audience.&amp;nbsp; Use the DATE format or the YYMMDD format instead and avoid the confusion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have date values then you can just subtract them to find the difference in days between the two dates.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 20:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-multiple-dates/m-p/882861#M348831</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-28T20:19:23Z</dc:date>
    </item>
  </channel>
</rss>

