<?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 Converting BRFSS 2016 .XPT to SAS file in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453073#M5174</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following code to try to convert the BRFSS 2016 .XPT file to a .sas file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME TRANSPRT XPORT '/folders/myfolders/LLCP2016.XPT';

*This is where the SAS data file will be saved;

LIBNAME DATAOUT v7 '/folders/myfolders/sasuser.v94';

PROC COPY IN=TRANSPRT OUT=DATAOUT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I get an error with the following message in the Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Libref DATAOUT refers to the same physical library as SASUSER.
 NOTE: Libref DATAOUT was successfully assigned as follows: 
       Engine:        V7 
       Physical Name: /folders/myfolders/sasuser.v94
 100        
 101        PROC COPY IN=TRANSPRT OUT=DATAOUT;
 102        RUN;
 
 NOTE: Input library TRANSPRT is sequential.
 ERROR: Physical file does not exist, /folders/myfolders/LLCP2016.XPT.
 NOTE: Statements not processed because of errors noted above.
 NOTE: PROCEDURE COPY used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 NOTE: The SAS System stopped processing this step because of errors.&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;I'm using the most recent version of SAS Studio (University Edition) as of 04/11/2018 and VirtualBox 5.2.4 (5.2.8 version was buggy for me) and I cannot figure what I'm doing wrong. Weirdly enough, the BRFSS 2013 .XPT file will run fine with this code, but the BRFSS 2014, 2015, and 2016 will not.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 Apr 2018 06:12:48 GMT</pubDate>
    <dc:creator>jchang53</dc:creator>
    <dc:date>2018-04-11T06:12:48Z</dc:date>
    <item>
      <title>Converting BRFSS 2016 .XPT to SAS file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453073#M5174</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following code to try to convert the BRFSS 2016 .XPT file to a .sas file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME TRANSPRT XPORT '/folders/myfolders/LLCP2016.XPT';

*This is where the SAS data file will be saved;

LIBNAME DATAOUT v7 '/folders/myfolders/sasuser.v94';

PROC COPY IN=TRANSPRT OUT=DATAOUT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I get an error with the following message in the Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Libref DATAOUT refers to the same physical library as SASUSER.
 NOTE: Libref DATAOUT was successfully assigned as follows: 
       Engine:        V7 
       Physical Name: /folders/myfolders/sasuser.v94
 100        
 101        PROC COPY IN=TRANSPRT OUT=DATAOUT;
 102        RUN;
 
 NOTE: Input library TRANSPRT is sequential.
 ERROR: Physical file does not exist, /folders/myfolders/LLCP2016.XPT.
 NOTE: Statements not processed because of errors noted above.
 NOTE: PROCEDURE COPY used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 NOTE: The SAS System stopped processing this step because of errors.&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;I'm using the most recent version of SAS Studio (University Edition) as of 04/11/2018 and VirtualBox 5.2.4 (5.2.8 version was buggy for me) and I cannot figure what I'm doing wrong. Weirdly enough, the BRFSS 2013 .XPT file will run fine with this code, but the BRFSS 2014, 2015, and 2016 will not.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Apr 2018 06:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453073#M5174</guid>
      <dc:creator>jchang53</dc:creator>
      <dc:date>2018-04-11T06:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Converting BRFSS 2016 .XPT to SAS file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453092#M5175</link>
      <description>&lt;P&gt;The log is very clear:&lt;/P&gt;
&lt;PRE&gt;ERROR: Physical file does not exist, /folders/myfolders/LLCP2016.XPT.&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;so you need to make sure that the file is in your shared folder and that it is named exactly (watch out for upper/lowercase) the way you want to access it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If in doubt, show a Windows Explorer look of your shared folder.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 07:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453092#M5175</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-11T07:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Converting BRFSS 2016 .XPT to SAS file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453093#M5176</link>
      <description>&lt;P&gt;PS do not copy that dataset (or any dataset) into your SASUSER. Space within the SAS UE virtual machine is limited. Use a library that is defined in your shared folder instead.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453093#M5176</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-11T08:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Converting BRFSS 2016 .XPT to SAS file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453139#M5177</link>
      <description>&lt;P&gt;Found it. The name of the XPT file ends with a blank (how stupid must someone be to come up with that idea? Well, government workers ...). You need to remove that first before you can import it.&lt;/P&gt;
&lt;P&gt;(Extracting the file on Windows with 7zip converted the blank to an underline, so you can immediately see that something weird is going on)&lt;/P&gt;
&lt;P&gt;Second oops: since nobody cared to deliver proper attributes in the zipped file, using unzip on UNIX gives you a file with NO permissions set, so you need to do a chmod first so you can read it. Grrmph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS sent a message to CDC-Info&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 11:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453139#M5177</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-11T11:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting BRFSS 2016 .XPT to SAS file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453276#M5180</link>
      <description>&lt;P&gt;Hi KurtBremser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and your thoughtful messages! After struggling some more I found an easier way to convert the file....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I renamed the file (getting rid of the space at the end) and moved it to a different folder. The code ran after that! Thank you for your help!!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         LIBNAME TRANSPRT XPORT '/folders/myfolders/BRFSS2016.XPT';
 NOTE: Libref TRANSPRT was successfully assigned as follows: 
       Engine:        XPORT 
       Physical Name: /folders/myfolders/BRFSS2016.XPT
 74         
 75         *This is where the SAS data file will be saved;
 76         
 77         LIBNAME DATAOUT v7 '/folders/myfolders/sasuser.v94';
 NOTE: Libref DATAOUT refers to the same physical library as SASUSER.
 NOTE: Libref DATAOUT was successfully assigned as follows: 
       Engine:        V7 
       Physical Name: /folders/myfolders/sasuser.v94
 78         
 79         PROC COPY IN=TRANSPRT OUT=DATAOUT;
 80         RUN;
 
 NOTE: Input library TRANSPRT is sequential.
 NOTE: Copying TRANSPRT.LLCP2016 to DATAOUT.LLCP2016 (memtype=DATA).
 NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
 NOTE: There were 486303 observations read from the data set TRANSPRT.LLCP2016.
 NOTE: The data set DATAOUT.LLCP2016 has 486303 observations and 275 variables.
 NOTE: PROCEDURE COPY used (Total process time):
       real time           43.49 seconds
       cpu time            12.72 seconds
       
 
 81         
 82         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 95         &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453276#M5180</guid>
      <dc:creator>jchang53</dc:creator>
      <dc:date>2018-04-11T16:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Converting BRFSS 2016 .XPT to SAS file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453293#M5181</link>
      <description>&lt;P&gt;Be very cautious. Your library dataout uses the directory of your SASUSER. Importing several datasets like that can cause your UE to stop working. Use a library that points to a subdirectory of your shared folder (as this resides outside of the UE virtual machine).&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 17:02:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453293#M5181</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-11T17:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Converting BRFSS 2016 .XPT to SAS file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/455839#M5295</link>
      <description>&lt;P&gt;I received this answer from the CDC:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Dear Mr. Bremser, &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Hello and thank you for your inquiry. Dave Flegel here. I am a tech writer working with BRFSS in CDC. I sent your correspondence to the tech crew here. They note that they have been able to use the data set with Windows 10; they have not been able to duplicate the issues that you reported. Over the last year or so, we have received a few inquiries from data users who have had trouble downloading the data sets on Macs (where our team has then recommended using assistance software that can help with the downloading) but we did not hear any specifics about the troubles they were having.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Thank you for bringing this issue to our attention, in case we receive inquiries in the future from data users who encounter related troubles.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Sincerely, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;(name edited out for privacy reasons)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;"Your download of 2016 BRFSS Data (SAS Transport Format) has a not-so-nice problem:&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;the name of the contained file ends with a blank after the .XPT, which needs an extra renaming step so that the file can be used with SAS. Since this blank is not obvious to most users, they get problems.&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;(see&amp;nbsp;&lt;A href="https://mail.aeat.allianz.at/owa/Kurt.Bremser@allianz.at/redir.aspx?REF=bpfyqqj90S_jxa90EhIRt1ig5Qs358dzCtUMgS5SrJgdECMWjqbVCAFodHRwczovL2NvbW11bml0aWVzLnNhcy5jb20vdDUvU0FTLVN0dWRpby9Db252ZXJ0aW5nLUJSRlNTLTIwMTYtWFBULXRvLVNBUy1maWxlL20tcC80NTMwNzM." target="_blank"&gt;https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/453073&lt;/A&gt;)"&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No comment.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 07:18:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Converting-BRFSS-2016-XPT-to-SAS-file/m-p/455839#M5295</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-20T07:18:47Z</dc:date>
    </item>
  </channel>
</rss>

