<?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 Filling in Missing Dates Sequentially in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filling-in-Missing-Dates-Sequentially/m-p/673966#M202855</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a new SAS user attempting to fill in some missing dates in my dataset. I have visits and visit numbers with corresponding start and end dates. I have all visit information, but not all dates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yawenyu929_1-1596336007630.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47868iC4504D9403CAB1E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yawenyu929_1-1596336007630.png" alt="yawenyu929_1-1596336007630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I add the missing date&lt;SPAN style="font-family: inherit;"&gt;s&amp;nbsp;&lt;/SPAN&gt;based on visit&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;without overwriting the existing ones? Also, gaps in dates are not consistent. Some subjects are missing one date, others are missing more. An&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;y help would be appreciated!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Aug 2020 02:42:28 GMT</pubDate>
    <dc:creator>yawenyu929</dc:creator>
    <dc:date>2020-08-02T02:42:28Z</dc:date>
    <item>
      <title>Filling in Missing Dates Sequentially</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-in-Missing-Dates-Sequentially/m-p/673966#M202855</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a new SAS user attempting to fill in some missing dates in my dataset. I have visits and visit numbers with corresponding start and end dates. I have all visit information, but not all dates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yawenyu929_1-1596336007630.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47868iC4504D9403CAB1E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yawenyu929_1-1596336007630.png" alt="yawenyu929_1-1596336007630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I add the missing date&lt;SPAN style="font-family: inherit;"&gt;s&amp;nbsp;&lt;/SPAN&gt;based on visit&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;without overwriting the existing ones? Also, gaps in dates are not consistent. Some subjects are missing one date, others are missing more. An&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;y help would be appreciated!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 02:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-in-Missing-Dates-Sequentially/m-p/673966#M202855</guid>
      <dc:creator>yawenyu929</dc:creator>
      <dc:date>2020-08-02T02:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in Missing Dates Sequentially</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-in-Missing-Dates-Sequentially/m-p/673970#M202858</link>
      <description>&lt;P&gt;I don't understand what you want your output to look like.&amp;nbsp; Could you show what the output should look like, corresponding to the input you have provided?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 03:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-in-Missing-Dates-Sequentially/m-p/673970#M202858</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-08-02T03:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in Missing Dates Sequentially</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-in-Missing-Dates-Sequentially/m-p/674039#M202903</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd my output to have all the missing dates filled in. If the last date is left off at 05Mar2020, then the next should be 06Mar2020, then 07Mar2020, then 08Mar2020, and so on until the next non-missing date. Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 01:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-in-Missing-Dates-Sequentially/m-p/674039#M202903</guid>
      <dc:creator>yawenyu929</dc:creator>
      <dc:date>2020-08-03T01:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in Missing Dates Sequentially</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-in-Missing-Dates-Sequentially/m-p/674043#M202904</link>
      <description>&lt;P&gt;You have not provided a sas data step to reveal the names of your variables, and I am not going to make a data step out of your png file.&amp;nbsp; So here goes, assuming your date variable names are DATE1 and DATE2:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    date1=coalesce(date1,lag(date1)+1);
    date2=coalesce(date2,lag(date2)+1);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Aug 2020 03:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-in-Missing-Dates-Sequentially/m-p/674043#M202904</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-08-03T03:40:32Z</dc:date>
    </item>
  </channel>
</rss>

