/***/ /* This SAS program reads ASCII format (text format) 2009 YRBS data and creates a */ /* formatted and labeled SAS dataset. */ /* */ /* Change the file location specifications from "c:\yrbs2009" to the location where */ /* you have stored the YRBS ASCII data file and the format library before you run this */ /* program. Change the location specification in three places - in the "filename" */ /* statement and in the two "libname" statements at the top of the program. */ /* */ /* Note: Run "YRBS_2009_SAS_Format_Program.sas" BEFORE you run */ /* "YRBS_2009_SAS_Input_Program.sas" to create the 2009 YRBS dataset. */ /***/ filename datain 'c:\yrbs2009\yrbs2009.dat'; libname dataout 'c:\yrbs2009'; libname library 'c:\yrbs2009'; data dataout.yrbs2009 ; infile datain lrecl=400; input Q1 $ 17-17 Q2 $ 18-18 Q3 $ 19-19 Q4 $ 20-20 Q5 $ 21-28 @29 Q6 4.2 @33 Q7 6.2 Q8 $ 39-39 Q9 $ 40-40 Q10 $ 41-41 Q11 $ 42-42 Q12 $ 43-43 Q13 $ 44-44 Q14 $ 45-45 Q15 $ 46-46 Q16 $ 47-47 Q17 $ 48-48 Q18 $ 49-49 Q19 $ 50-50 Q20 $ 51-51 Q21 $ 52-52 Q22 $ 53-53 Q23 $ 54-54 Q24 $ 55-55 Q25 $ 56-56 Q26 $ 57-57 Q27 $ 58-58 Q28 $ 59-59 Q29 $ 60-60 Q30 $ 61-61 Q31 $ 62-62 Q32 $ 63-63 Q33 $ 64-64 Q34 $ 65-65 Q35 $ 66-66 Q36 $ 67-67 Q37 $ 68-68 Q38 $ 69-69 Q39 $ 70-70 Q40 $ 71-71 Q41 $ 72-72 Q42 $ 73-73 Q43 $ 74-74 Q44 $ 75-75 Q45 $ 76-76 Q46 $ 77-77 Q47 $ 78-78 Q48 $ 79-79 Q49 $ 80-80 Q50 $ 81-81 Q51 $ 82-82 Q52 $ 83-83 Q53 $ 84-84 Q54 $ 85-85 Q55 $ 86-86 Q56 $ 87-87 Q57 $ 88-88 Q58 $ 89-89 Q59 $ 90-90 Q60 $ 91-91 Q61 $ 92-92 Q62 $ 93-93 Q63 $ 94-94 Q64 $ 95-95 Q65 $ 96-96 Q66 $ 97-97 Q67 $ 98-98 Q68 $ 99-99 Q69 $ 100-100 Q70 $ 101-101 Q71 $ 102-102 Q72 $ 103-103 Q73 $ 104-104 Q74 $ 105-105 Q75 $ 106-106 Q76 $ 107-107 Q77 $ 108-108 Q78 $ 109-109 Q79 $ 110-110 Q80 $ 111-111 Q81 $ 112-112 Q82 $ 113-113 Q83 $ 114-114 Q84 $ 115-115 Q85 $ 116-116 Q86 $ 117-117 Q87 $ 118-118 Q88 $ 119-119 Q89 $ 120-120 Q90 $ 121-121 Q91 $ 122-122 Q92 $ 123-123 Q93 $ 124-124 Q94 $ 125-125 Q95 $ 126-126 Q96 $ 127-127 Q97 $ 128-128 Q98 $ 129-129 QN8 175-175 QN9 176-176 QN10 177-177 QN11 178-178 QN12 179-179 QN13 180-180 QN14 181-181 QN15 182-182 QN16 183-183 QN17 184-184 QN18 185-185 QN19 186-186 QN20 187-187 QN21 188-188 QN22 189-189 QN23 190-190 QN24 191-191 QN25 192-192 QN26 193-193 QN27 194-194 QN28 195-195 QN29 196-196 QN30 197-197 QN31 198-198 QN32 199-199 QN33 200-200 QN34 201-201 QN35 202-202 QN36 203-203 QN37 204-204 QN38 205-205 QN39 206-206 QN40 207-207 QN41 208-208 QN42 209-209 QN43 210-210 QN44 211-211 QN45 212-212 QN46 213-213 QN47 214-214 QN48 215-215 QN49 216-216 QN50 217-217 QN51 218-218 QN52 219-219 QN53 220-220 QN54 221-221 QN55 222-222 QN56 223-223 QN57 224-224 QN58 225-225 QN59 226-226 QN60 227-227 QN61 228-228 QN62 229-229 QN63 230-230 QN64 231-231 QN65 232-232 QN66 233-233 QN67 234-234 QN68 235-235 QN69 236-236 QN70 237-237 QN71 238-238 QN72 239-239 QN73 240-240 QN74 241-241 QN75 242-242 QN76 243-243 QN77 244-244 QN78 245-245 QN79 246-246 QN80 247-247 QN81 248-248 QN82 249-249 QN83 250-250 QN84 251-251 QN85 252-252 QN86 253-253 QN87 254-254 QN88 255-255 QN89 256-256 QN90 257-257 QN91 258-258 QN92 259-259 QN93 260-260 QN94 261-261 QN95 262-262 QN96 263-263 QN97 264-264 QN98 265-265 QNFRCIG 350-350 QNANYTOB 351-351 QNFRVG 352-352 QNFRUIT 353-353 QNVEG 354-354 QNDLYPE 355-355 QNOWT 356-356 QNOBESE 357-357 QNDEPO 358-358 QNDEPOPL 359-359 QNDUAL 360-360 QNPA0DAY 361-361 QNPA7DAY 362-362 @363 WEIGHT 10.4 @373 STRATUM 3.0 @376 PSU 7.0 BMIPCT 388-392 RACEETH $ 393-394 ; * * Assign formats to SAS variables.* *; format Q1 $H1S. Q2 $H2S. Q3 $H3S. Q4 $H4S. Q5 $char8. Q6 4.2 Q7 6.2 Q8 $H8S. Q9 $H9S. Q10 $H10S. Q11 $H11S. Q12 $H12S. Q13 $H13S. Q14 $H14S. Q15 $H15S. Q16 $H16S. Q17 $H17S. Q18 $H18S. Q19 $H19S. Q20 $H20S. Q21 $H21S. Q22 $H22S. Q23 $H23S. Q24 $H24S. Q25 $H25S. Q26 $H26S. Q27 $H27S. Q28 $H28S. Q29 $H29S. Q30 $H30S. Q31 $H31S. Q32 $H32S. Q33 $H33S. Q34 $H34S. Q35 $H35S. Q36 $H36S. Q37 $H37S. Q38 $H38S. Q39 $H39S. Q40 $H40S. Q41 $H41S. Q42 $H42S. Q43 $H43S. Q44 $H44S. Q45 $H45S. Q46 $H46S. Q47 $H47S. Q48 $H48S. Q49 $H49S. Q50 $H50S. Q51 $H51S. Q52 $H52S. Q53 $H53S. Q54 $H54S. Q55 $H55S. Q56 $H56S. Q57 $H57S. Q58 $H58S. Q59 $H59S. Q60 $H60S. Q61 $H61S. Q62 $H62S. Q63 $H63S. Q64 $H64S. Q65 $H65S. Q66 $H66S. Q67 $H67S. Q68 $H68S. Q69 $H69S. Q70 $H70S. Q71 $H71S. Q72 $H72S. Q73 $H73S. Q74 $H74S. Q75 $H75S. Q76 $H76S. Q77 $H77S. Q78 $H78S. Q79 $H79S. Q80 $H80S. Q81 $H81S. Q82 $H82S. Q83 $H83S. Q84 $H84S. Q85 $H85S. Q86 $H86S. Q87 $H87S. Q88 $H88XX. Q89 $H89XX. Q90 $H90XX. Q91 $H91XX. Q92 $H92XX. Q93 $H93XX. Q94 $H94XX. Q95 $H95XX. Q96 $H96XX. Q97 $H97XX. Q98 $H98XX. raceeth $Hrce.; * Assign labels to SAS variables.* ; label Q1="How old are you" Q2="What is your sex" Q3="In what grade are you" Q4="Are you Hispanic/Latino" Q5="What is your race" Q6="How tall are you" Q7="How much do you weigh" Q8="How often wear bicycle helmet" Q9="How often wore a seat belt" Q10="How often ride w/drinking driver 30 days" Q11="How often drive while drinking 30 days" Q12="Carried weapon 30 days" Q13="Carried gun 30 days" Q14="Carried weapon at school 30 days" Q15="How many days feel unsafe@school 30 days" Q16="How many times threatened@school 12 mos" Q17="How many times in fight 12 mos" Q18="How many times injured in fight 12 mos" Q19="How many times in fight @ school 12 mos" Q20="Did boyfriend/girlfriend hit/slap 12 mo" Q21="Have you been forced to have sex" Q22="Have you been bullied @ school past 12 mos" Q23="Ever feel sad or hopeless 12 mos" Q24="Ever considered suicide 12 mos" Q25="Ever make suicide plan 12 mos" Q26="Times attempted suicide 12 mos." Q27="Ever injured from suicide attempt 12 mos" Q28="Ever smoked" Q29="How old when first smoked" Q30="How many days smoked 30 days" Q31="How many cigarettes/day 30 days" Q32="How did you get cigarettes past 30 days" Q33="How many days smoke @ school 30 days" Q34="Have you ever smoked daily" Q35="Tried to quit smoking past 12 months" Q36="How many days use snuff past 30 days" Q37="Days use snuff school property 30 days" Q38="How many days smoke cigars 30 days" Q39="How many days drink alcohol" Q40="How old when first drank alcohol" Q41="How many days drink alcohol 30 days" Q42="How many days have 5+ drinks 30 days" Q43="How did you get alcohol past 30 days" Q44="How many days drink @ school 30 days" Q45="How many times smoke marijuana" Q46="How old when first tried marijuana" Q47="How many times use marijuana 30 days" Q48="How many times marijuana@school 30 days" Q49="How many times use cocaine" Q50="How many times use cocaine 30 days" Q51="How many times sniffed glue" Q52="How many times used heroin" Q53="How many times used methamphetamines" Q54="Ecstasy one or more time" Q55="How many times used steroids" Q56="How many times injected drugs" Q57="Offered drugs @ school 12 mos" Q58="Ever had sex" Q59="How old at first sex" Q60="How many sex partners" Q61="How many sex partners 3 mos" Q62="Did you use alcohol/drugs @ last sex" Q63="Did you use condom @ last sex" Q64="What birth control @ last sex" Q65="How do you describe your weight" Q66="What are you trying to do about weight" Q67="Did you exercise to lose weight 30 days" Q68="Did you eat less to lose weight 30 days" Q69="Did you fast to lose weight 30 days" Q70="Did you take pill to lose weight 30 days" Q71="Did you vomit to lose weight 30 days" Q72="How many times fruit juice 7 days" Q73="How many times fruit 7 days" Q74="How many time green salad 7 days" Q75="How many times potatoes 7 days" Q76="How many times carrots 7 days" Q77="How many times other vegetables 7 days" Q78="How many times drink soda past 7 days" Q79="How many glass of milk 7 days" Q80="Days active 60 min plus past 7 days" Q81="How many hours watch TV" Q82="How many hours/day play video games" Q83="How many days go to PE class" Q84="On how many sports team 12 mos" Q85="Ever taught about AIDS/HIV @ school" Q86="Ever been told you have asthma" Q87="Do you still have asthma" Q88="How often wear motorcycle helmet" Q89="Ever used LSD" Q90="Times RX drug w/out prescription life" Q91="Did you do vigorous exercise 7 days" Q92="Did you do moderate exercise 7 days" Q93="How many minutes exercise in PE class" Q94="Ever tested for HIV" Q95="Do you wear sunscreen" Q96="Times used tanning device past 12" Q97="Hours of sleep on school night" Q98="How were your grades past 12 months" QN8="Never/rarely wore bicycle helmet" QN9="Never/rarely wore seat belt" QN10="Rode 1+ times with drinking driver" QN11="Drove 1+ times when drinking" QN12="Carried weapon 1+ times past 30 days" QN13="Carried gun 1+ past 30 days" QN14="Carried weapon school 1+ past 30 days" QN15="Missed school b/c unsafe 1+ 30 days" QN16="Threatened at school 1+ times 12 mos" QN17="Fought 1+ times 12 mos" QN18="Injured/treated 1+ times 12 mos" QN19="Fought school 1+ times 12 mos" QN20="Hit by bf/gf 12 mos" QN21="Forced to have sex" QN22="Bullied at school 12 mos" QN23="Sad 2 wks past 12 mos" QN24="Considered suicide 12 mos" QN25="Made suicide plan 12 mos" QN26="Attempted suicide 1+ times 12 mos" QN27="Suicide attempt w/injury 12 mos" QN28="Ever tried cigarettes" QN29="Smoked cigarette before 13" QN30="Smoked 1+ past 30 days" QN31="Smoked >10 cigarettes/day past 30 days" QN32="Got cigarettes in store 30 days" QN33="Smoked at school 1+ past 30 days" QN34="Smoked daily for 30 days" QN35="Among smokers, tried to quit smoking" QN36="Used snuff/dip 1+ past 30 days" QN37="Used snuff/dip at school 1+ 30 days" QN38="Smoked cigars 1+ past 30 days" QN39="Had 1 drink on 1+ days in life" QN40="Had first drink before 13" QN41="Had 1+ drinks past 30 days" QN42="Five+ drinks 1+ past 30 days" QN43="Someone gave alcohol to me past 30 days" QN44="Had 1+ drinks at school 1+ 30 days" QN45="Tried marijuana 1+ times in life" QN46="Tried marijuana before 13" QN47="Used marijuana 1+ times past 30 days" QN48="Used marijuana school 1+ times 30 day" QN49="Used cocaine 1+ times in life" QN50="Used cocaine 1+ times past 30 days" QN51="Sniffed glue 1+ times in life" QN52="Used heroin 1+ times in life" QN53="Used meth 1+ times in life" QN54="Used ecstasy 1+ times in life" QN55="Took steroids 1+ times in life" QN56="Injected drugs 1+ times in life" QN57="Offered/sold drugs at school 12 mos" QN58="Had sex ever" QN59="Had sex before 13" QN60="Had sex with 4+ people in life" QN61="Had sex with 1+ people 3 mos" QN62="Of current sex, used alcohol last time" QN63="Of current sex, used condom last time" QN64="Of current sex, used birth ctl last sx" QN65="Slightly/very overweight" QN66="Trying to lose weight" QN67="Exercised to lose weight past 30 days" QN68="Ate less to lose weight past 30 days" QN69="Fasted to lose weight past 30 days" QN70="Took pills to lose weight past 30 days" QN71="Vomited to lose weight past 30 days" QN72="Drank fruit juice past 7 days" QN73="Ate fruit past 7 days" QN74="Ate green salad past 7 days" QN75="Ate potatoes past 7 days" QN76="Ate carrots past 7 days" QN77="Ate vegetables past 7 days" QN78="Drank soda 1+ times/day past 7 days" QN79="Drank 3+ glasses milk past 7 days" QN80="Active 60 min on 5+ past 7 days" QN81="Watched 3+ hours of TV average day" QN82="Played video games 3+ hours/day" QN83="Attended PE class 1+ days average week" QN84="Played on 1+ sports teams past 12 mos" QN85="Taught about AIDS/HIV @ school" QN86="Told by doctor/nurse they had asthma" QN87="With current asthma" QN88="Never/rarely wear helmet" QN89="Used LSD 1+ times" QN90="Taken prescription drug wo prescription" QN91="Vigorous exercise past 7 days" QN92="Moderate exercise past 7 days" QN93="Exercised in PE 21+ minutes" QN94="Tested for HIV" QN95="Mostly or always wear sunscreen" QN96="Used 1+ times indoor tanning" QN97="Get 8+ hours sleep" QN98="Grades mostly Ds and Fs" qnfrcig="Smoked on 20 past 30 days" qnanytob="Used any tobacco past 30 days" qnfrvg="Ate 5+ fruits/vegetables/day 7 days" qnfruit="Ate 2+ fruits 7 days" qnveg="Ate 3+ vegetables 7 days" qndlype="Attended PE class daily" qnowt="Overweight" qnobese="Obese" qndepo="Used depo" qndepopl="Used depo or pill" qndual="Used condom and depo or pill" qnpa0day="Physically active 0 of past 7 days" qnpa7day="Physically active 7 of past 7 days" weight="Analysis weight" stratum="Stratum" psu="PSU" bmipct="Body Mass Index Percentage" raceeth="Race/Ethnicity" ; run;