<?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 Distinguishing actually date in lots of missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769142#M243998</link>
    <description>&lt;P&gt;HI,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently&lt;SPAN&gt;&amp;nbsp;bothered by a task.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For the following dataset containing ID and birthday to confirm unique information for each subject. I have to check the actually first bleeding date for each patient, which was defined by&lt;/P&gt;&lt;P&gt;1) bleedingday-14&amp;lt;= gastroscopyday &amp;lt;=bleedingday+14 and&lt;/P&gt;&lt;P&gt;2) bleedingday&amp;lt;=gidrugday&amp;lt;=bleedingday+30.&lt;/P&gt;&lt;P&gt;For instance, the first&amp;nbsp;bleeding date of ID 7000XXXXX should be recognized as Day 15292.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone give me some hints to work on or any codes to fix it?&lt;/P&gt;&lt;P&gt;thanks!&lt;BR /&gt;&lt;BR /&gt;DATA CASE ;&lt;BR /&gt;INPUT ID $ birthday1 $ gi_bleedingday gastroscopyday gidrugday ;&lt;BR /&gt;CARDS;&lt;BR /&gt;7000082662380a 196202 . . 15327&lt;BR /&gt;7000082662380a 196202 . 18673 .&lt;BR /&gt;7000082662380a 196202 . 18674 .&lt;BR /&gt;7000082662380a 196202 15068 . .&lt;BR /&gt;7000082662380a 196202 15069 . .&lt;BR /&gt;7000082662380a 196202 15069 15069 .&lt;BR /&gt;7000082662380a 196202 15076 . .&lt;BR /&gt;7000082662380a 196202 15110 . .&lt;BR /&gt;7000082662380a 196202 15124 . .&lt;BR /&gt;7000082662380a 196202 15292 . .&lt;BR /&gt;7000082662380a 196202 15299 . .&lt;BR /&gt;7000082662380a 196202 15305 . .&lt;BR /&gt;7000082662380a 196202 15305 15305 .&lt;BR /&gt;7000082662380a 196202 15313 . .&lt;BR /&gt;7000082662380a 196202 15313 . 15313&lt;BR /&gt;7000082662380a 196202 15347 . .&lt;BR /&gt;7000082662380a 196202 16007 . .&lt;BR /&gt;7000082662380a 196202 16007 16007 .&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iksawffej_0-1632314714865.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63892i1EDD16CD14B2FA82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="iksawffej_0-1632314714865.png" alt="iksawffej_0-1632314714865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 06:31:14 GMT</pubDate>
    <dc:creator>iksawffej</dc:creator>
    <dc:date>2021-09-23T06:31:14Z</dc:date>
    <item>
      <title>Distinguishing actually date in lots of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769142#M243998</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently&lt;SPAN&gt;&amp;nbsp;bothered by a task.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For the following dataset containing ID and birthday to confirm unique information for each subject. I have to check the actually first bleeding date for each patient, which was defined by&lt;/P&gt;&lt;P&gt;1) bleedingday-14&amp;lt;= gastroscopyday &amp;lt;=bleedingday+14 and&lt;/P&gt;&lt;P&gt;2) bleedingday&amp;lt;=gidrugday&amp;lt;=bleedingday+30.&lt;/P&gt;&lt;P&gt;For instance, the first&amp;nbsp;bleeding date of ID 7000XXXXX should be recognized as Day 15292.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone give me some hints to work on or any codes to fix it?&lt;/P&gt;&lt;P&gt;thanks!&lt;BR /&gt;&lt;BR /&gt;DATA CASE ;&lt;BR /&gt;INPUT ID $ birthday1 $ gi_bleedingday gastroscopyday gidrugday ;&lt;BR /&gt;CARDS;&lt;BR /&gt;7000082662380a 196202 . . 15327&lt;BR /&gt;7000082662380a 196202 . 18673 .&lt;BR /&gt;7000082662380a 196202 . 18674 .&lt;BR /&gt;7000082662380a 196202 15068 . .&lt;BR /&gt;7000082662380a 196202 15069 . .&lt;BR /&gt;7000082662380a 196202 15069 15069 .&lt;BR /&gt;7000082662380a 196202 15076 . .&lt;BR /&gt;7000082662380a 196202 15110 . .&lt;BR /&gt;7000082662380a 196202 15124 . .&lt;BR /&gt;7000082662380a 196202 15292 . .&lt;BR /&gt;7000082662380a 196202 15299 . .&lt;BR /&gt;7000082662380a 196202 15305 . .&lt;BR /&gt;7000082662380a 196202 15305 15305 .&lt;BR /&gt;7000082662380a 196202 15313 . .&lt;BR /&gt;7000082662380a 196202 15313 . 15313&lt;BR /&gt;7000082662380a 196202 15347 . .&lt;BR /&gt;7000082662380a 196202 16007 . .&lt;BR /&gt;7000082662380a 196202 16007 16007 .&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iksawffej_0-1632314714865.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63892i1EDD16CD14B2FA82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="iksawffej_0-1632314714865.png" alt="iksawffej_0-1632314714865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 06:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769142#M243998</guid>
      <dc:creator>iksawffej</dc:creator>
      <dc:date>2021-09-23T06:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Distinguishing actually date in lots of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769149#M244002</link>
      <description>&lt;P&gt;Please post your data in reusable form. The following link contains a macro that will do it for you: &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, please ensure that any identifying information is not posted. If you need to create a pseudo ID, please do so beforehand. Someone recently posted identifying information on another post, so double-check before you post. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 13:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769149#M244002</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2021-09-22T13:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Distinguishing actually date in lots of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769150#M244003</link>
      <description>&lt;P&gt;I don't understand the desired output, can you explain further and actually show us a small portion of the desired output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, we can't write code to work on data in screen captures. Please provide the code according to these instructions&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/&lt;/A&gt;&amp;nbsp;and not as a file attachment or screen capture.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 13:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769150#M244003</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-22T13:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Distinguishing actually date in lots of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769161#M244008</link>
      <description>Hi, thanks for your remind, the reusable example has been posted.</description>
      <pubDate>Wed, 22 Sep 2021 13:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769161#M244008</guid>
      <dc:creator>iksawffej</dc:creator>
      <dc:date>2021-09-22T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Distinguishing actually date in lots of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769163#M244009</link>
      <description>&lt;P&gt;Thanks for your remind, the reusable example has been posted.&lt;BR /&gt;The final output contains&amp;nbsp; ID birthday and the correct bleeding date matched the criteria above will be good.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 13:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Distinguishing-actually-date-in-lots-of-missing-values/m-p/769163#M244009</guid>
      <dc:creator>iksawffej</dc:creator>
      <dc:date>2021-09-22T13:25:37Z</dc:date>
    </item>
  </channel>
</rss>

