<?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: I'm trying to get BRFSS data into SAS. When I try to import , it says data is invalid in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985633#M2821</link>
    <description>Files in a ZIP archive need a two-step approach:&lt;BR /&gt;first, define a FILENAME for the ZIP file&lt;BR /&gt;then, in the DATA step you write to read the data, use the file reference and the name of the contained file as a member (see documentation of the INFILE statement)</description>
    <pubDate>Mon, 30 Mar 2026 15:15:09 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2026-03-30T15:15:09Z</dc:date>
    <item>
      <title>I'm trying to get BRFSS data into SAS. When I try to import , it says data is invalid</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985627#M2820</link>
      <description>&lt;P&gt;Most previous posts around this subject are from 2019 or before so maybe something has changed. I have uploaded the BRFSS data zip file but can't figure out how to make the data accessible for use. When I tried to import, it says the file is invalid. I am using SAS studio for Academics online.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 13:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985627#M2820</guid>
      <dc:creator>oldeks</dc:creator>
      <dc:date>2026-03-30T13:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to get BRFSS data into SAS. When I try to import , it says data is invalid</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985633#M2821</link>
      <description>Files in a ZIP archive need a two-step approach:&lt;BR /&gt;first, define a FILENAME for the ZIP file&lt;BR /&gt;then, in the DATA step you write to read the data, use the file reference and the name of the contained file as a member (see documentation of the INFILE statement)</description>
      <pubDate>Mon, 30 Mar 2026 15:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985633#M2821</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-03-30T15:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to get BRFSS data into SAS. When I try to import , it says data is invalid</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985647#M2824</link>
      <description>&lt;P&gt;Did you download zip files of text or of SAS data sets? I think that if the file contains SAS data sets then unzip and create a library pointing to the folder where the files were unzipped would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the zip contains text files to read then unzip and use the programs to read the files that were likely at the location you downloaded the data sets.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 16:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985647#M2824</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2026-03-30T16:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to get BRFSS data into SAS. When I try to import , it says data is invalid</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985651#M2825</link>
      <description>&lt;P&gt;They publish a lot of files. What files in particular did you download?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I look at for example the 2024 data files.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cdc.gov/brfss/annual_data/annual_2024.html" target="_blank"&gt;https://www.cdc.gov/brfss/annual_data/annual_2024.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are two ZIP files.&amp;nbsp; One contains the RAW text file of the data.&amp;nbsp; You will need to read that file using a SAS data step. Which they also provide.&amp;nbsp; If that is the file you retrieved show what issues you had with using their program to read the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other has a V5 SAS transport file.&amp;nbsp; For SAS code to read that you will need to expand it first.&amp;nbsp; You can have SAS do it into a temporary file in the directory using by the WORK library of your current session.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename brfss zip '~/LLCP2024XPT.zip' member='*' lrecl=80 recfm=f;

filename xpt "%sysfunc(pathname(work))/llcp2024.xpt" lrecl=80 recfm=f;
%put RC=%sysfunc(fcopy(brfss,xpt));

libname brfss xport "%sysfunc(pathname(work))/llcp2024.xpt";
proc copy inlib=brfss outlib=work;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt; NOTE: Input library BRFSS is sequential.
 NOTE: Copying BRFSS.LLCP2024 to WORK.LLCP2024 (memtype=DATA).
 NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
 NOTE: There were 457670 observations read from the data set BRFSS.LLCP2024.
 NOTE: The data set WORK.LLCP2024 has 457670 observations and 301 variables.
 NOTE: PROCEDURE COPY used (Total process time):
       real time           4.46 seconds
       cpu time            4.43 seconds
&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Mar 2026 20:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985651#M2825</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-03-30T20:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to get BRFSS data into SAS. When I try to import , it says data is invalid</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985683#M2829</link>
      <description>It's the 2022 SAS transport file.&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Mar 2026 12:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-m-trying-to-get-BRFSS-data-into-SAS-When-I-try-to-import-it/m-p/985683#M2829</guid>
      <dc:creator>oldeks</dc:creator>
      <dc:date>2026-03-31T12:50:43Z</dc:date>
    </item>
  </channel>
</rss>

