<?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 Merging Multiple Datasets with Differing Formats - NHIS Across Years Merge in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Merging-Multiple-Datasets-with-Differing-Formats-NHIS-Across/m-p/617310#M19054</link>
    <description>&lt;P&gt;I am trying to merge the datasets from the NHIS sample adult and person files from years 2006 to 2018. I am able to merge within the years without any problem, however, when I attempt to merge across years, SAS provides a long list of format errors - for example:&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="Capture.JPG" style="width: 574px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35328iA2B89AFAE38BADF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The error list goes on and on since there are so many variables in the datasets with associated formats.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formats for each year are all stored as permanent format files. And I've tried to use the below statement, without luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options fmtsearch=(fmtlib);

data out.comboNHIS;
set tomerge2006 tomerge2007 tomerge2008 tomerge2009 tomerge2010 
tomerge2011 tomerge2012 tomerge2013 tomerge2014 tomerge2015
tomerge2016 tomerge2017 tomerge2018;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to embed each of the formats within each of the individual datasets when importing them so that I won't run into this issue? Any other easy solution to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using v.9.4.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2020 20:37:57 GMT</pubDate>
    <dc:creator>K_Taylor</dc:creator>
    <dc:date>2020-01-14T20:37:57Z</dc:date>
    <item>
      <title>Merging Multiple Datasets with Differing Formats - NHIS Across Years Merge</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Merging-Multiple-Datasets-with-Differing-Formats-NHIS-Across/m-p/617310#M19054</link>
      <description>&lt;P&gt;I am trying to merge the datasets from the NHIS sample adult and person files from years 2006 to 2018. I am able to merge within the years without any problem, however, when I attempt to merge across years, SAS provides a long list of format errors - for example:&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="Capture.JPG" style="width: 574px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35328iA2B89AFAE38BADF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The error list goes on and on since there are so many variables in the datasets with associated formats.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formats for each year are all stored as permanent format files. And I've tried to use the below statement, without luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options fmtsearch=(fmtlib);

data out.comboNHIS;
set tomerge2006 tomerge2007 tomerge2008 tomerge2009 tomerge2010 
tomerge2011 tomerge2012 tomerge2013 tomerge2014 tomerge2015
tomerge2016 tomerge2017 tomerge2018;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to embed each of the formats within each of the individual datasets when importing them so that I won't run into this issue? Any other easy solution to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using v.9.4.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 20:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Merging-Multiple-Datasets-with-Differing-Formats-NHIS-Across/m-p/617310#M19054</guid>
      <dc:creator>K_Taylor</dc:creator>
      <dc:date>2020-01-14T20:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple Datasets with Differing Formats - NHIS Across Years Merge</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Merging-Multiple-Datasets-with-Differing-Formats-NHIS-Across/m-p/617327#M19058</link>
      <description>&lt;P&gt;You will need the formats eventually.&amp;nbsp; But if you just want to be able to skip the error messages temporarily, you can issue this as the first statement in the program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options nofmterr;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It eliminates the error message when a format cannot be found.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 21:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Merging-Multiple-Datasets-with-Differing-Formats-NHIS-Across/m-p/617327#M19058</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-01-14T21:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple Datasets with Differing Formats - NHIS Across Years Merge</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Merging-Multiple-Datasets-with-Differing-Formats-NHIS-Across/m-p/617351#M19059</link>
      <description>I thought those data sets came with the format files. Did you run that program specifically? Did it error out for some reason?</description>
      <pubDate>Tue, 14 Jan 2020 23:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Merging-Multiple-Datasets-with-Differing-Formats-NHIS-Across/m-p/617351#M19059</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-14T23:44:22Z</dc:date>
    </item>
  </channel>
</rss>

