<?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 BRFFS: I've converted the XPT, but now what? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/BRFFS-I-ve-converted-the-XPT-but-now-what/m-p/601101#M16669</link>
    <description>&lt;P&gt;I'm using the 2017 BRFSS Annual Survey data with SAS UE. I've successfully converted the XPT file to a SAS file. My VMWare Fusion has a solid shared folder with my Google Drive; it's never given me issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code for converting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DM OUTPUT 'clear' continue;
DM LOG    'clear' continue;
OPTIONS PAGENO=1 NOFMTERR;
TITLE ;
FOOTNOTE ;
RUN ;


LIBNAME TRANSPRT XPORT '/folders/myfolders/BRFSS/LLCP2017.XPT';
LIBNAME DATAOUT V7 '/folders/myfolders/BRFSS/'  ;
PROC COPY IN=TRANSPRT OUT=DATAOUT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to begin using this sas file, but I can't figure out how to&lt;/STRONG&gt;. I've tried creating new libraries, using infile statements and a few other ways that just don't seem to be working. I've never had to convert or re-link to a new SAS file, so it's got me stumped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to start by creating a new dataset that has only information where _STATE=47 (Tennessee).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What do I do?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the log for my code given above:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         DM OUTPUT 'clear' continue;
 74         DM LOG    'clear' continue;
 75         OPTIONS PAGENO=1 NOFMTERR;
 76         TITLE ;
 77         FOOTNOTE ;
 78         RUN ;
 79         
 80         
 81         LIBNAME TRANSPRT XPORT '/folders/myfolders/BRFSS/LLCP2017.XPT';
 NOTE: Libref TRANSPRT was successfully assigned as follows: 
       Engine:        XPORT 
       Physical Name: /folders/myfolders/BRFSS/LLCP2017.XPT
 82         LIBNAME DATAOUT V7 '/folders/myfolders/BRFSS/'  ;
 NOTE: Libref DATAOUT was successfully assigned as follows: 
       Engine:        V7 
       Physical Name: /folders/myfolders/BRFSS
 83         PROC COPY IN=TRANSPRT OUT=DATAOUT;
 84         RUN;
 
 NOTE: Input library TRANSPRT is sequential.
 NOTE: Copying TRANSPRT.LLCP2017 to DATAOUT.LLCP2017 (memtype=DATA).
 NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
 NOTE: There were 450016 observations read from the data set TRANSPRT.LLCP2017.
 NOTE: The data set DATAOUT.LLCP2017 has 450016 observations and 358 variables.
 NOTE: PROCEDURE COPY used (Total process time):
       real time           4:05.62
       cpu time            4:02.00
       
 
 85         
 86         
 87         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 99         &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2019 21:07:37 GMT</pubDate>
    <dc:creator>SAS93</dc:creator>
    <dc:date>2019-11-01T21:07:37Z</dc:date>
    <item>
      <title>BRFFS: I've converted the XPT, but now what?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/BRFFS-I-ve-converted-the-XPT-but-now-what/m-p/601101#M16669</link>
      <description>&lt;P&gt;I'm using the 2017 BRFSS Annual Survey data with SAS UE. I've successfully converted the XPT file to a SAS file. My VMWare Fusion has a solid shared folder with my Google Drive; it's never given me issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code for converting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DM OUTPUT 'clear' continue;
DM LOG    'clear' continue;
OPTIONS PAGENO=1 NOFMTERR;
TITLE ;
FOOTNOTE ;
RUN ;


LIBNAME TRANSPRT XPORT '/folders/myfolders/BRFSS/LLCP2017.XPT';
LIBNAME DATAOUT V7 '/folders/myfolders/BRFSS/'  ;
PROC COPY IN=TRANSPRT OUT=DATAOUT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to begin using this sas file, but I can't figure out how to&lt;/STRONG&gt;. I've tried creating new libraries, using infile statements and a few other ways that just don't seem to be working. I've never had to convert or re-link to a new SAS file, so it's got me stumped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to start by creating a new dataset that has only information where _STATE=47 (Tennessee).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What do I do?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the log for my code given above:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         DM OUTPUT 'clear' continue;
 74         DM LOG    'clear' continue;
 75         OPTIONS PAGENO=1 NOFMTERR;
 76         TITLE ;
 77         FOOTNOTE ;
 78         RUN ;
 79         
 80         
 81         LIBNAME TRANSPRT XPORT '/folders/myfolders/BRFSS/LLCP2017.XPT';
 NOTE: Libref TRANSPRT was successfully assigned as follows: 
       Engine:        XPORT 
       Physical Name: /folders/myfolders/BRFSS/LLCP2017.XPT
 82         LIBNAME DATAOUT V7 '/folders/myfolders/BRFSS/'  ;
 NOTE: Libref DATAOUT was successfully assigned as follows: 
       Engine:        V7 
       Physical Name: /folders/myfolders/BRFSS
 83         PROC COPY IN=TRANSPRT OUT=DATAOUT;
 84         RUN;
 
 NOTE: Input library TRANSPRT is sequential.
 NOTE: Copying TRANSPRT.LLCP2017 to DATAOUT.LLCP2017 (memtype=DATA).
 NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
 NOTE: There were 450016 observations read from the data set TRANSPRT.LLCP2017.
 NOTE: The data set DATAOUT.LLCP2017 has 450016 observations and 358 variables.
 NOTE: PROCEDURE COPY used (Total process time):
       real time           4:05.62
       cpu time            4:02.00
       
 
 85         
 86         
 87         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 99         &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 21:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/BRFFS-I-ve-converted-the-XPT-but-now-what/m-p/601101#M16669</guid>
      <dc:creator>SAS93</dc:creator>
      <dc:date>2019-11-01T21:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: BRFFS: I've converted the XPT, but now what?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/BRFFS-I-ve-converted-the-XPT-but-now-what/m-p/601105#M16672</link>
      <description>&lt;P&gt;Does your library DATAOUT actually have the data set LLCP2017? The notes say that it should. That would be your data to work with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you run Proc Contents on Dataout.LLCP2017?&lt;/P&gt;
&lt;P&gt;If so the next step would likely be to subset the data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data datout.tenn;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dataout.llcp2017;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where _state=47; /* possibly ='47', I don't know whether the _state variable is character or numeric*/&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 21:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/BRFFS-I-ve-converted-the-XPT-but-now-what/m-p/601105#M16672</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-01T21:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: BRFFS: I've converted the XPT, but now what?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/BRFFS-I-ve-converted-the-XPT-but-now-what/m-p/601137#M16678</link>
      <description>&lt;P&gt;Thank you! I think I tried something similar to that, but it didn't work. I tried it this way, and it worked. For anyone who comes across this same silly issue in the future, here is my final code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DM OUTPUT 'clear' continue;
DM LOG    'clear' continue;
OPTIONS PAGENO=1 NOFMTERR;
TITLE ;
FOOTNOTE ;
RUN ;


LIBNAME TRANSPRT XPORT '/folders/myfolders/BRFSS/LLCP2017.XPT';
LIBNAME DATAOUT V7 '/folders/myfolders/BRFSS/'  ;
PROC COPY IN=TRANSPRT OUT=DATAOUT;
RUN;

*Create new Library to store working dataset;
Libname BRFSS '/folders/myfolders/';
Run;
Data BRFSS.BRF17;
	Set dataout.llcp2017;
	Where _STATE=47;
Run;

Proc surveyfreq data=BRFSS.BRF17;
	table HAVARTH3;
	Strata _STSTR;
	Weight _LLCPWT;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I also found this blog post to be helpful in figuring out this problem:&lt;/P&gt;&lt;P&gt;&lt;A href="https://thebusinessofbeingnerds.wordpress.com/2016/11/30/happiness-income/" target="_self"&gt;Satisfaction with Life and Income: A Secondary Data Analysis Using the BRFSS 2010 Survey&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 11:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/BRFFS-I-ve-converted-the-XPT-but-now-what/m-p/601137#M16678</guid>
      <dc:creator>SAS93</dc:creator>
      <dc:date>2019-11-02T11:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: BRFFS: I've converted the XPT, but now what?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/BRFFS-I-ve-converted-the-XPT-but-now-what/m-p/601432#M16720</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297876"&gt;@SAS93&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you! I think I tried something similar to that, but it didn't work. I tried it this way, and it worked. For anyone who comes across this same silly issue in the future, here is my final code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DM OUTPUT 'clear' continue;
DM LOG    'clear' continue;
OPTIONS PAGENO=1 NOFMTERR;
TITLE ;
FOOTNOTE ;
RUN ;


LIBNAME TRANSPRT XPORT '/folders/myfolders/BRFSS/LLCP2017.XPT';
LIBNAME DATAOUT V7 '/folders/myfolders/BRFSS/'  ;
PROC COPY IN=TRANSPRT OUT=DATAOUT;
RUN;

*Create new Library to store working dataset;
Libname BRFSS '/folders/myfolders/';
Run;
Data BRFSS.BRF17;
	Set dataout.llcp2017;
	Where _STATE=47;
Run;

Proc surveyfreq data=BRFSS.BRF17;
	table HAVARTH3;
	Strata _STSTR;
	Weight _LLCPWT;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I also found this blog post to be helpful in figuring out this problem:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebusinessofbeingnerds.wordpress.com/2016/11/30/happiness-income/" target="_self"&gt;Satisfaction with Life and Income: A Secondary Data Analysis Using the BRFSS 2010 Survey&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You likely need to include&amp;nbsp; CLUSTER _PSU&amp;nbsp;;&amp;nbsp;and should almost certainly use the Proc option NOMCAR (not missing completely at random) with BRFSS data as a fair amount of the missing data comes from skip patterns in the code, i.e. do not answer some questions because of response to a previous question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've worked with BRFSS data off and on since 1997 so have some familiarity with the likely syntax.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 16:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/BRFFS-I-ve-converted-the-XPT-but-now-what/m-p/601432#M16720</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-04T16:43:11Z</dc:date>
    </item>
  </channel>
</rss>

