<?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: Importing NHIS data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Importing-NHIS-data/m-p/444965#M69397</link>
    <description>&lt;P&gt;Do you know if the newer SAS can open zip files?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2018 22:36:58 GMT</pubDate>
    <dc:creator>Elizabeth24</dc:creator>
    <dc:date>2018-03-12T22:36:58Z</dc:date>
    <item>
      <title>Importing NHIS data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-NHIS-data/m-p/444960#M69395</link>
      <description>&lt;P&gt;I am struggling to download, save, and import a dataset into SAS. I want to import each year of the NHIS (CDC's National Health Interview Survey) Sample Child files into SAS to do a proc surveyfreq.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying the &lt;STRONG&gt;2013&lt;/STRONG&gt; data release...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Download data set:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Go to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cdc.gov/nchs/nhis/nhis_2013_data_release.htm" target="_blank"&gt;https://www.cdc.gov/nchs/nhis/nhis_2013_data_release.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Click on "&lt;STRONG&gt;Data Files&lt;/STRONG&gt;" drop down menu&lt;/P&gt;&lt;P&gt;3. Find "&lt;STRONG&gt;Sample Child File&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;4. Click on &lt;STRONG&gt;ASCII zip file&lt;/STRONG&gt; (this is the data file that downloads and saves into my H - drive. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because it's a .dat file, my code cannot read it in SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I'm trying...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Import OUT=work.childsample2013&lt;/P&gt;&lt;P&gt;DATAFILE= 'H:\Autism\2013samchild.zip'&lt;/P&gt;&lt;P&gt;DBMS=dlm replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works fine for the NHIS data from&lt;STRONG&gt; 2016&lt;/STRONG&gt; because its available in an &lt;U&gt;excel&lt;/U&gt; file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Import out=work.childsample&lt;/P&gt;&lt;P&gt;DATAFILE= "H:\Autism\CHILDSample.xlsx"&lt;/P&gt;&lt;P&gt;DBMS=EXCEL REPLACE;&lt;/P&gt;&lt;P&gt;RUN:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;P&gt;THANK YOU!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 22:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-NHIS-data/m-p/444960#M69395</guid>
      <dc:creator>Elizabeth24</dc:creator>
      <dc:date>2018-03-12T22:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Importing NHIS data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-NHIS-data/m-p/444962#M69396</link>
      <description>&lt;P&gt;Perhaps you should examine the files on the site named "Sample SAS Statements" for each section. The file will have code on how to read the file as well as formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to modify the code to point to your file paths for in the infile and libname statements.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 22:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-NHIS-data/m-p/444962#M69396</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-12T22:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Importing NHIS data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-NHIS-data/m-p/444965#M69397</link>
      <description>&lt;P&gt;Do you know if the newer SAS can open zip files?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 22:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-NHIS-data/m-p/444965#M69397</guid>
      <dc:creator>Elizabeth24</dc:creator>
      <dc:date>2018-03-12T22:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Importing NHIS data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-NHIS-data/m-p/444975#M69398</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/198712"&gt;@Elizabeth24&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Do you know if the newer SAS can open zip files?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes but limited to files created with WinZip and you couldn't execute the SAS code from inside the ZIp&amp;nbsp;if that is what you are thinking. For one thing the paths in the NHIS code are almost certain not to match yours.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 23:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-NHIS-data/m-p/444975#M69398</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-12T23:11:43Z</dc:date>
    </item>
  </channel>
</rss>

