<?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 Infants born on different dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Infants-born-on-different-dates/m-p/692625#M211021</link>
    <description>&lt;P&gt;working with the state birth file and want to create an id each year that&amp;nbsp;&amp;nbsp;that links a mother and infant. When the mother has more than 1 infant on the same delivery, they should all be assigned this ID. So I was basing this random ID on the mother full name and DOB of infant, but then I realized there might be instances when infants are not born on the same day (sometimes one day after). How can I account for that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have certificate number, mothers first name, last name, DOB and infants first name, last name and IDOB&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 18:11:32 GMT</pubDate>
    <dc:creator>malena</dc:creator>
    <dc:date>2020-10-19T18:11:32Z</dc:date>
    <item>
      <title>Infants born on different dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infants-born-on-different-dates/m-p/692625#M211021</link>
      <description>&lt;P&gt;working with the state birth file and want to create an id each year that&amp;nbsp;&amp;nbsp;that links a mother and infant. When the mother has more than 1 infant on the same delivery, they should all be assigned this ID. So I was basing this random ID on the mother full name and DOB of infant, but then I realized there might be instances when infants are not born on the same day (sometimes one day after). How can I account for that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have certificate number, mothers first name, last name, DOB and infants first name, last name and IDOB&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 18:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infants-born-on-different-dates/m-p/692625#M211021</guid>
      <dc:creator>malena</dc:creator>
      <dc:date>2020-10-19T18:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Infants born on different dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infants-born-on-different-dates/m-p/692633#M211026</link>
      <description>&lt;P&gt;Show us a portion of this data set, using &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 17:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infants-born-on-different-dates/m-p/692633#M211026</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-19T17:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Infants born on different dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infants-born-on-different-dates/m-p/692636#M211028</link>
      <description>&lt;P&gt;Use the date from the first infant born to generate the ID.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 17:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infants-born-on-different-dates/m-p/692636#M211028</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-10-19T17:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Infants born on different dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infants-born-on-different-dates/m-p/692652#M211034</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Use the date from the first infant born to generate the ID.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And only increment a counter if the second birth is within a short interval. Not up on the biology but doubt if the second live birth occurs more than 24 hours later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or look much closer at the data set, I would suspect there is already something along those lines in the data, possibly hidden in a birth certificate number or similar. I don't have all my references but I think, at least for US birth certificates, there is a field related to order of delivery in a multiple birth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say that you have "certificate number" but that data set does not show any variable of that name or labeled as such.&lt;/P&gt;
&lt;P&gt;What is the "newid2" supposed to be? Is that the result of your attempt? Or is it the certificate number? If so, look at it closely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Purpose of this variable is what?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 18:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infants-born-on-different-dates/m-p/692652#M211034</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-19T18:10:56Z</dc:date>
    </item>
  </channel>
</rss>

