<?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 YRDIF function not working for some observations in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/YRDIF-function-not-working-for-some-observations/m-p/704015#M9550</link>
    <description>&lt;P&gt;Hi SAS communities,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I match merged 4 data sets into one. There should only be 1 observation per person, which includes the most recent visit. One data set had a Birth Date variable and another data set had a Visit Date variable. After merging all 4 I then had to create a new variable that shows what age the person was between Birth date and Visit Date. Below is my code and I think I did the code correctly, but in the log, it shows that 2 out of the 573 are missing data. I checked the data sets and they show both the Birth date and Visit date. It could possibly be the way I also made the 4 data sets, but want to know ifs a simple coding mistake. Below is my code and a screenshot of the partial log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="Screen Shot 2020-12-06 at 6.43.32 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52378iB2640DCE55AE4FCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-12-06 at 6.43.32 PM.png" alt="Screen Shot 2020-12-06 at 6.43.32 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need more information&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 15:11:28 GMT</pubDate>
    <dc:creator>cris17</dc:creator>
    <dc:date>2020-12-10T15:11:28Z</dc:date>
    <item>
      <title>YRDIF function not working for some observations</title>
      <link>https://communities.sas.com/t5/SAS-Studio/YRDIF-function-not-working-for-some-observations/m-p/704015#M9550</link>
      <description>&lt;P&gt;Hi SAS communities,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I match merged 4 data sets into one. There should only be 1 observation per person, which includes the most recent visit. One data set had a Birth Date variable and another data set had a Visit Date variable. After merging all 4 I then had to create a new variable that shows what age the person was between Birth date and Visit Date. Below is my code and I think I did the code correctly, but in the log, it shows that 2 out of the 573 are missing data. I checked the data sets and they show both the Birth date and Visit date. It could possibly be the way I also made the 4 data sets, but want to know ifs a simple coding mistake. Below is my code and a screenshot of the partial log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="Screen Shot 2020-12-06 at 6.43.32 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52378iB2640DCE55AE4FCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-12-06 at 6.43.32 PM.png" alt="Screen Shot 2020-12-06 at 6.43.32 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need more information&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/YRDIF-function-not-working-for-some-observations/m-p/704015#M9550</guid>
      <dc:creator>cris17</dc:creator>
      <dc:date>2020-12-10T15:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: YRDIF function not working for some observations</title>
      <link>https://communities.sas.com/t5/SAS-Studio/YRDIF-function-not-working-for-some-observations/m-p/704016#M9551</link>
      <description>&lt;P&gt;The log clearly shows that VisitDt is missing for these two observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it may be that when you merge these data sets, a missing VisitDt in one data set overwrites a non-missing VisitDt from another data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the future, please post log as text (not screen capture) by pasting it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 01:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/YRDIF-function-not-working-for-some-observations/m-p/704016#M9551</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-07T01:58:37Z</dc:date>
    </item>
  </channel>
</rss>

