<?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: Calculate Number Days and Display Current Row in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Number-Days-and-Display-Current-Row/m-p/639745#M21704</link>
    <description>&lt;P&gt;Hi, I will do that next time I post .&amp;nbsp; Your example below worked perfectly.&amp;nbsp; Thank you!!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 13:30:03 GMT</pubDate>
    <dc:creator>rich_f</dc:creator>
    <dc:date>2020-04-14T13:30:03Z</dc:date>
    <item>
      <title>Calculate Number Days and Display Current Row</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Number-Days-and-Display-Current-Row/m-p/639580#M21694</link>
      <description>&lt;P&gt;I have searched this site and Google to my wits end.&amp;nbsp; I have found everything that tells me how to calculate the difference, in days, between two dates.&amp;nbsp; I am looking to display that result a little differently.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what my results look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rich_f_2-1586809751532.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38272iD095F6FE521C3709/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rich_f_2-1586809751532.png" alt="rich_f_2-1586809751532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the need:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rich_f_1-1586809471822.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38271i3C17D09E93AFCF23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rich_f_1-1586809471822.png" alt="rich_f_1-1586809471822.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The case was submitted to Agency ID 52 on 17 Dec 2019.&amp;nbsp; Agency ID 52 sent it back to the originator on the same day a few hours later.&amp;nbsp; I need to be able to show that Agency ID 1457 took 27 days to send it back.&amp;nbsp; Currently, my query shows that it sat for 27 days with ID 52 (Days Reviewed 1st screenshot).&amp;nbsp; Everything I have found to calculate the difference works like it should, with the exception of getting the result to display where I need it.&amp;nbsp; Essentially the "Need" column has just been shifted up one row compared to the original display.&lt;/P&gt;&lt;P&gt;I need the result in this format, for a visualization project I'm working.&amp;nbsp; Any advice or hints would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 20:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-Number-Days-and-Display-Current-Row/m-p/639580#M21694</guid>
      <dc:creator>rich_f</dc:creator>
      <dc:date>2020-04-13T20:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number Days and Display Current Row</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Number-Days-and-Display-Current-Row/m-p/639584#M21695</link>
      <description>&lt;P&gt;Hi Posting the data as plain text would help us to copy paste conveniently and work on the requirement, Anyways, have you tried a programming construct called "LOOK AHEAD"?&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 merge have have(firstobs=2 keep=agency_id rename=agency_id=need);
 if review_action="SUBMIT" then call missing(need);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;
&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 20:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-Number-Days-and-Display-Current-Row/m-p/639584#M21695</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-04-13T20:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number Days and Display Current Row</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Number-Days-and-Display-Current-Row/m-p/639585#M21696</link>
      <description>&lt;P&gt;You might show the code you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 20:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-Number-Days-and-Display-Current-Row/m-p/639585#M21696</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-13T20:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number Days and Display Current Row</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Number-Days-and-Display-Current-Row/m-p/639745#M21704</link>
      <description>&lt;P&gt;Hi, I will do that next time I post .&amp;nbsp; Your example below worked perfectly.&amp;nbsp; Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 13:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-Number-Days-and-Display-Current-Row/m-p/639745#M21704</guid>
      <dc:creator>rich_f</dc:creator>
      <dc:date>2020-04-14T13:30:03Z</dc:date>
    </item>
  </channel>
</rss>

