<?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: Inserting non-case population from census population into working dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Inserting-non-case-population-from-census-population-into/m-p/843148#M333358</link>
    <description>&lt;P&gt;Are there any variables that appear in B that do not appear in A? Are there any variables in A that do not appear in B?&lt;/P&gt;
&lt;P&gt;If not it appears that you just replace A with B to have the numbers match. So I suspect there are details you are leaving out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suspect additional variables like age, or age group, as well to be somewhere from the Census data I have worked with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Didn't work" is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the "&amp;lt;/&amp;gt;" to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "&amp;lt;/&amp;gt;" icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 15:34:59 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-11-08T15:34:59Z</dc:date>
    <item>
      <title>Inserting non-case population from census population into working dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-non-case-population-from-census-population-into/m-p/843131#M333353</link>
      <description>&lt;P&gt;Hello SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem where I would appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My working dataset A has the following information. I am just adding few rows so that you know the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working dataset A (165 rows)&lt;/P&gt;&lt;P&gt;Gender Race&amp;nbsp; Ethnicity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; County&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Black&amp;nbsp; Non-hispanic&amp;nbsp; &amp;nbsp; Lincoln&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Black&amp;nbsp; Non-hispanic&amp;nbsp; &amp;nbsp; Lincoln&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Black&amp;nbsp; Non-hispanic&amp;nbsp; &amp;nbsp; Lincoln&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Black&amp;nbsp; Non-hispanic&amp;nbsp; &amp;nbsp; Lincoln&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Census dataset B (265 rows, will need to insert 100 rows from this to above dataset to balance to 265)&lt;/P&gt;&lt;P&gt;Gender Race&amp;nbsp; Ethnicity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; County&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Black&amp;nbsp; Non-hispanic&amp;nbsp; &amp;nbsp; Lincoln&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Black&amp;nbsp; Non-hispanic&amp;nbsp; &amp;nbsp; Lincoln&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Black&amp;nbsp; Non-hispanic&amp;nbsp; &amp;nbsp; Lincoln&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Black&amp;nbsp; Non-hispanic&amp;nbsp; &amp;nbsp; Lincoln&lt;/P&gt;&lt;P&gt;Lets say I have 165 rows with this combination in working dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From our dataset B which is our census population, we have 265 rows with the above combination. So, to balance and insert population into the dataset A,&lt;/P&gt;&lt;P&gt;I need to add 100 rows with this combination from dataset B to&amp;nbsp; dataset A.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have create IDs for rows using gender, race, ethnicity, county and the same thing in census population and tried to join them on these combinations. But it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how to move forward, please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 14:09:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-non-case-population-from-census-population-into/m-p/843131#M333353</guid>
      <dc:creator>SP01</dc:creator>
      <dc:date>2022-11-08T14:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting non-case population from census population into working dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-non-case-population-from-census-population-into/m-p/843148#M333358</link>
      <description>&lt;P&gt;Are there any variables that appear in B that do not appear in A? Are there any variables in A that do not appear in B?&lt;/P&gt;
&lt;P&gt;If not it appears that you just replace A with B to have the numbers match. So I suspect there are details you are leaving out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suspect additional variables like age, or age group, as well to be somewhere from the Census data I have worked with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Didn't work" is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the "&amp;lt;/&amp;gt;" to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "&amp;lt;/&amp;gt;" icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-non-case-population-from-census-population-into/m-p/843148#M333358</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-11-08T15:34:59Z</dc:date>
    </item>
  </channel>
</rss>

