<?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: Trying to create a subset of variables from YRBSS 2017 Data but variables format not loading in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/552824#M153713</link>
    <description>&lt;P&gt;Alternative way is removing all these formats in table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data air;
 set sashelp.air;
run;


proc datasets library=work nolist nodetails;
modify air;
attrib _all_ format= ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 Apr 2019 13:18:30 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-04-22T13:18:30Z</dc:date>
    <item>
      <title>Trying to create a subset of variables from YRBSS 2017 Data but variables format not loading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/552743#M153682</link>
      <description>&lt;P&gt;So, I am trying to analyse a subset of YRBSs data 2017, I successfully keep the variables I am interested in but under the SAS log i get notes saying ' format could not be found or successfully loaded for the variables of interest. I feel this might affect me moving forward and I want to know if anyone has experience with this dataset or can help me solve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname DMZ '/folders/myshortcuts/MyFolders/NEW17';
run;
/* Study Variables dataset*/
data DMZ.dmprev;
set DMZ.NEW17 (keep=raceeth qnowt qnobese Q1 Q2 Q30 Q71 Q72 Q74 Q75 Q76 Q79);
run;

SAS LOG

 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         data DMZ.dmprev;
 74         set DMZ.NEW17 (keep=raceeth qnowt qnobese Q1 Q2 Q30 Q71 Q72 Q74 Q75 Q76 Q79);
 75         run;
 
 NOTE: Format $H1S was not found or could not be loaded.
 NOTE: Format $H2S was not found or could not be loaded.
 NOTE: Format $H30S was not found or could not be loaded.
 NOTE: Format $H71S was not found or could not be loaded.
 NOTE: Format $H72S was not found or could not be loaded.
 NOTE: Format $H74S was not found or could not be loaded.
 NOTE: Format $H75S was not found or could not be loaded.
 NOTE: Format $H76S was not found or could not be loaded.
 NOTE: Format $H79S was not found or could not be loaded.
 NOTE: Format $HRCE was not found or could not be loaded.
 NOTE: There were 14765 observations read from the data set DMZ.NEW17.
 NOTE: The data set DMZ.DMPREV has 14765 observations and 12 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.46 seconds
       cpu time            0.22 seconds
       &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Apr 2019 02:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/552743#M153682</guid>
      <dc:creator>mjawla</dc:creator>
      <dc:date>2019-04-22T02:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a subset of variables from YRBSS 2017 Data but variables format not loading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/552745#M153684</link>
      <description>This means that your data contains codes, not text that can be easily interpreted.  You can work with the codes easily enough by making this the first statement in the program:&lt;BR /&gt;&lt;BR /&gt;options nofmterr;&lt;BR /&gt;&lt;BR /&gt;But the best solution is to find the formats.  First look in the folder identified as DMZ.  If you see a catalog there named formats, add after the libname statement:&lt;BR /&gt;&lt;BR /&gt;options fmtsearch=(work.formats, dmz.formats) ;&lt;BR /&gt;&lt;BR /&gt;If that's not it, you first need to find the catalog holding the formats.</description>
      <pubDate>Mon, 22 Apr 2019 04:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/552745#M153684</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-22T04:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a subset of variables from YRBSS 2017 Data but variables format not loading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/552824#M153713</link>
      <description>&lt;P&gt;Alternative way is removing all these formats in table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data air;
 set sashelp.air;
run;


proc datasets library=work nolist nodetails;
modify air;
attrib _all_ format= ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Apr 2019 13:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/552824#M153713</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-22T13:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a subset of variables from YRBSS 2017 Data but variables format not loading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/552942#M153735</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263792"&gt;@mjawla&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So, I am trying to analyse a subset of YRBSs data 2017, I successfully keep the variables I am interested in but under the SAS log i get notes saying ' format could not be found or successfully loaded for the variables of interest. I feel this might affect me moving forward and I want to know if anyone has experience with this dataset or can help me solve this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You are also&amp;nbsp;missing things to do proper analysis of YRBSS data. The survey is a complex sample design I don't see any of the weighting, cluster&amp;nbsp;or strata variables(if strata are used by the state your data is from).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The proper analysis procedures are going to be the survey procedures such as Surveymeans, surveyfreq, surveylogistic and such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest looking at the source of your data file and see if there were any SAS program files with the format codes and/or assignment statements.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 16:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/552942#M153735</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-22T16:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a subset of variables from YRBSS 2017 Data but variables format not loading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/553600#M153960</link>
      <description>I downloaded the SAS files straight from the CDC database, and did the steps needed to create the data in the steps they highlighted. Does surveymeans, freq and logistics inculcate the weighing and strata of the variables or do i have to do that by itself usng other steps?&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2019 12:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/553600#M153960</guid>
      <dc:creator>mjawla</dc:creator>
      <dc:date>2019-04-24T12:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a subset of variables from YRBSS 2017 Data but variables format not loading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/553601#M153961</link>
      <description>Thank you, using&lt;BR /&gt;options fmtsearch=(work.formats, dmz.formats) ;&lt;BR /&gt;sorted it out.</description>
      <pubDate>Wed, 24 Apr 2019 12:38:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/553601#M153961</guid>
      <dc:creator>mjawla</dc:creator>
      <dc:date>2019-04-24T12:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a subset of variables from YRBSS 2017 Data but variables format not loading</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/553681#M153982</link>
      <description>&lt;P&gt;The weighting and sample design variables should be in the data sets.&lt;/P&gt;
&lt;P&gt;You would have to reference them. Typically the CDC websites have some example analysis code you should be able to crib from regarding the survey proc syntax and the sample design elements needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cdc.gov/healthyyouth/data/yrbs/pdf/2017/2017_YRBS_analysis_software.pdf" target="_blank"&gt;https://www.cdc.gov/healthyyouth/data/yrbs/pdf/2017/2017_YRBS_analysis_software.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;has some example code for analysis using different software packages including SAS with an example using SURVEYFREQ. The other survey procs would use the same Weight,&amp;nbsp; Strata and Cluster statements assuming your data has those variables.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 15:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-create-a-subset-of-variables-from-YRBSS-2017-Data-but/m-p/553681#M153982</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-24T15:31:59Z</dc:date>
    </item>
  </channel>
</rss>

