<?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: merge parent information to multiple children in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811779#M320231</link>
    <description>&lt;P&gt;How was the child and family information merged/combined? Sounds like something went wrong in that step, so that step should be fixed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show the code or logic used?&lt;/P&gt;
&lt;P&gt;Or the data structure. Fake data is fine but ensure the output expected matches with the input shown, ie provide a reproducible example.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 01:49:42 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-05-06T01:49:42Z</dc:date>
    <item>
      <title>merge parent information to multiple children</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811776#M320229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set that includes the mother and child information in one row - they are combined using their shared family ID, but what just realized that if there are multiple children with the same family ID only one match with the mother happens.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I duplicate the mother information to merge with the 2nd or 3rd&amp;nbsp; etc. child information. and maintain one whole data set?&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 00:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811776#M320229</guid>
      <dc:creator>Cooksam13</dc:creator>
      <dc:date>2022-05-06T00:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: merge parent information to multiple children</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811777#M320230</link>
      <description>&lt;P&gt;We can't provide a solution to your problem until you provide some sample mother and child data and details of what you would like it changed to.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 01:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811777#M320230</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-05-06T01:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: merge parent information to multiple children</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811779#M320231</link>
      <description>&lt;P&gt;How was the child and family information merged/combined? Sounds like something went wrong in that step, so that step should be fixed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show the code or logic used?&lt;/P&gt;
&lt;P&gt;Or the data structure. Fake data is fine but ensure the output expected matches with the input shown, ie provide a reproducible example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 01:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811779#M320231</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-05-06T01:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: merge parent information to multiple children</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811780#M320232</link>
      <description>&lt;P&gt;first I combined the demographics data with the screening data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA have;&lt;BR /&gt;MERGE screen&lt;BR /&gt;dem;&lt;BR /&gt;BY ID_Person;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then separated the child and mother data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data adult;&lt;BR /&gt;set have;&lt;BR /&gt;if Adult = 'Adult' then output;&lt;BR /&gt;run;&lt;BR /&gt;data adult2;&lt;BR /&gt;set adult;&lt;BR /&gt;if CD_Gender = 'Female' then output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data child;&lt;BR /&gt;set have;&lt;BR /&gt;if child = 'Child' then output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then I did some editing to some other variables like adding "A_" before all the variables associated with "Adult" so that when I merged them it wouldn't overwrite it - except for the variable "ID_Family"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;next I sort it by the ID_family that both of the data sets have&lt;/P&gt;&lt;P&gt;proc sort data = child2;&lt;BR /&gt;by ID_family;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data = adult;&lt;BR /&gt;by ID_family;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;Merge child&lt;BR /&gt;adult;&lt;BR /&gt;by ID_family;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 02:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811780#M320232</guid>
      <dc:creator>Cooksam13</dc:creator>
      <dc:date>2022-05-06T02:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: merge parent information to multiple children</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811886#M320289</link>
      <description>You'll need to show your actual code, but your code as shown references a data set called CHILD2 that isn't shown somewhere. &lt;BR /&gt;Check your log thoroughly for notes and such. Your general logic is correct, so it's a specific detail somewhere, either in the code or data that's wrong.</description>
      <pubDate>Fri, 06 May 2022 15:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811886#M320289</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-05-06T15:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: merge parent information to multiple children</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811933#M320311</link>
      <description>&lt;P&gt;sorry that is wrong I meant to say just "child" I think it was a typo error that is the code i used i can't show the rename section as it is a HIPPA problem&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 19:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/811933#M320311</guid>
      <dc:creator>Cooksam13</dc:creator>
      <dc:date>2022-05-06T19:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: merge parent information to multiple children</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/812196#M320439</link>
      <description>&lt;P&gt;HIPAA doesn't apply to variable names, it applies to patient data and you can make fake data. Unfortunately with what you've shown I cannot assist any further.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 15:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-parent-information-to-multiple-children/m-p/812196#M320439</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-05-09T15:49:41Z</dc:date>
    </item>
  </channel>
</rss>

