/***/ /* This SAS program reads ASCII format (text format) 2019 SADC data and creates a */ /* formatted and labeled SAS dataset. */ /* */ /* Change the file location specifications from 'c:\SADC2019' 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. */ /* */ /* Change "xxxxxxx" in the 'filename' statement and the 'data' statement to */ /* 'district', 'state_a_m', or 'state_n_z' depending on which file */ /* you are analyzing. */ /* */ /* Note: Run '2019 SADC MS SAS Formats Program.sas' BEFORE you run */ /* '2019 SADC MS SAS Input Program.sas' to create the 2019SADC MS dataset. */ /***/ filename datain 'c:\SADC2019\sadc_ms_2019_xxxxxxx.dat'; libname dataout 'c:\SADC2019'; libname library 'c:\SADC2019'; data dataout.sadc_ms_2019_xxxxxxx; infile datain lrecl=900; input sitecode $ 1-5 sitename $ 6-55 sitetype $ 56-105 sitetypenum 106-113 year 114-121 survyear 122-129 weight 130-139 stratum 140-147 PSU 148-155 record 156-163 age 164-166 sex 167-174 grade 175-177 race4 178-180 race7 181-183 q6 $ 184-184 q7 $ 185-185 q8 $ 186-186 q9 $ 187-187 q10 $ 188-188 q11 $ 189-189 q12 $ 190-190 q13 $ 191-191 q14 $ 192-192 q15 $ 193-193 q16 $ 194-194 q17 $ 195-195 q18 $ 196-196 q19 $ 197-197 q20 $ 198-198 q21 $ 199-199 q22 $ 200-200 q23 $ 201-201 q24 $ 202-202 q25 $ 203-203 q26 $ 204-204 q27 $ 205-205 q28 $ 206-206 q29 $ 207-207 q30 $ 208-208 q31 $ 209-209 q32 $ 210-210 q33 $ 211-211 q34 $ 212-212 q35 $ 213-213 q36 $ 214-214 q37 $ 215-215 q38 $ 216-216 q39 $ 217-217 q40 $ 218-218 q41 $ 219-219 q42 $ 220-220 q43 $ 221-221 q44 $ 222-222 q45 $ 223-223 q46 $ 224-224 q47 $ 225-225 q48 $ 226-226 q49 $ 227-227 qn6 228-230 qn7 231-233 qn8 234-236 qn9 237-239 qn10 240-242 qn11 243-245 qn12 246-248 qn13 249-251 qn14 252-254 qn15 255-257 qn16 258-260 qn17 261-263 qn18 264-266 qn19 267-269 qn20 270-272 qn21 273-275 qn22 276-278 qn23 279-281 qn24 282-284 qn25 285-287 qn26 288-290 qn27 291-293 qn28 294-296 qn29 297-299 qn30 300-302 qn31 303-305 qn32 306-308 qn33 309-311 qn34 312-314 qn35 315-317 qn36 318-320 qn37 321-323 qn38 324-326 qn39 327-329 qn40 330-332 qn41 333-335 qn42 336-338 qn43 339-341 qn44 342-344 qn45 345-347 qn46 348-350 qn47 351-353 qn48 354-356 qn49 357-359 qnfrcig 360-362 qndaycig 363-365 qnfrevp 366-368 qndayevp 369-371 qnfrcgr 372-374 qndaycgr 375-377 qntb2 378-380 qntb3 381-383 qntb4 384-386 qntb5 387-389 qnbk7day 390-392 qnpa0day 393-395 qnpa7day 396-398 qndlype 399-401 qdrivemarijuana $ 402-409 qcelldriving $ 410-417 qbullyweight $ 418-418 qbullygay $ 419-419 qcigschool $ 420-420 qchewtobschool $ 421-421 qalcoholschool $ 422-422 qhowmarijuana $ 423-423 qmarijuanaschool $ 424-424 qcurrentcocaine $ 425-432 qhallucdrug $ 433-440 qprescription30d $ 441-441 qgenderexp $ 442-442 qtaughtHIV $ 443-443 qtaughtsexed $ 444-444 qtaughtstd $ 445-445 qtaughtbc $ 446-446 qdietpop $ 447-454 qcoffeetea $ 455-462 qsportsdrink $ 463-463 qenergydrink $ 464-464 qsugardrink $ 465-465 qwater $ 466-466 qfastfood $ 467-467 qwenthungry $ 468-468 qmusclestrength $ 469-469 qsunscreenuse $ 470-470 qindoortanning $ 471-471 qcurrentasthma $ 472-472 qwheresleep $ 473-473 qhivtesting $ 474-474 qsexid $ 475-475 qsamesex $ 476-476 qoralsex $ 477-477 qsynthmarijuana $ 478-485 qndrivemarijuana 486-488 qncelldriving 489-491 qnbullyweight 492-494 qnbullygay 495-497 qncigschool 498-500 qnchewtobschool 501-503 qnalcoholschool 504-506 qnhowmarijuana 507-509 qnmarijuanaschool 510-512 qncurrentcocaine 513-515 qnhallucdrug 516-518 qnprescription30d 519-521 qngenderexp 522-524 qntaughtHIV 525-527 qntaughtsexed 528-530 qntaughtstd 531-533 qntaughtbc 534-536 qndietpop 537-539 qncoffeetea 540-542 qnsportsdrink 543-545 qnenergydrink 546-548 qnsugardrink 549-551 qnwater 552-554 qnfastfood 555-557 qnwenthungry 558-560 qnmusclestrength 561-563 qnsunscreenuse 564-566 qnindoortanning 567-569 qncurrentasthma 570-572 qnwheresleep 573-575 qnhivtesting 576-578 qnoralsex 579-581 qnsynthmarijuana 582-584 ; // /* Assign formats to SAS variables */ // ; format age AGE. sex SEX. grade GRADE. race4 RACE. race7 RACE7S. q6 $M6S. q7 $M7S. q8 $M8S. q9 $M9S. q10 $M10S. q11 $M11S. q12 $M12S. q13 $M13S. q14 $M14S. q15 $M15S. q16 $M16S. q17 $M17S. q18 $M18S. q19 $M19S. q20 $M20S. q21 $M21S. q22 $M22S. q23 $M23S. q24 $M24S. q25 $M25S. q26 $M26S. q27 $M27S. q28 $M28S. q29 $M29S. q30 $M30S. q31 $M31S. q32 $M32S. q33 $M33S. q34 $M34S. q35 $M35S. q36 $M36S. q37 $M37S. q38 $M38S. q39 $M39S. q40 $M40S. q41 $M41S. q42 $M42S. q43 $M43S. q44 $M44S. q45 $M45S. q46 $M46S. q47 $M47S. q48 $M48S. q49 $M49S. qdrivemarijuana $DRVMARJ. qcelldriving $CELLDRV. qbullyweight $BULLWGT. qbullygay $BULLGAY. qcigschool $CIGS. qchewtobschool $CHEWTOB. qalcoholschool $ALCSCH. qhowmarijuana $HOWMARJ. qmarijuanaschool $MARIJSCH. qcurrentcocaine $CURRCOC. qhallucdrug $LSD. qprescription30d $DRUG30D. qgenderexp $EXPRESS. qtaughtHIV $THIV. qtaughtsexed $TSEXED. qtaughtstd $TSTD. qtaughtbc $TBC. qdietpop $DIETPOP. qcoffeetea $COFFEE. qsportsdrink $SPRTDRNK. qenergydrink $ENRGDRNK. qsugardrink $SGRDRNK. qwater $WATER. qfastfood $FASTFOOD. qwenthungry $HUNGRY. qmusclestrength $MUSCLE. qsunscreenuse $SUNSCR. qindoortanning $SUNTAN. qcurrentasthma $CURRASTH. qwheresleep $WHSLP. qhivtesting $HIVTEST. qsexid $SEXID. qsamesex $SAMESEX. qoralsex $ORAL. qsynthmarijuana $SYNMARIJ. ; // /* Assign labels to SAS variables */ // ; label sitecode="Site code" sitename="Site name" sitetype="Site type" sitetypenum="1=District, 2=State" year="4-digit Year of survey" survyear="1=1995...13=2019" weight="Analysis weight" stratum="Analysis stratum" PSU="Analysis primary sampling unit" record="Record ID" age="1= <=10...7=16+ years old" sex="1=Female, 2=Male" grade="1=6th...3=8th grade" race4="4-level race variable" race7="7-level race variable" q6="Bicycle helmet use" q7="Rollerblading helmet use" q8="Seat belt use" q9="Riding with a drinking driver" q10="Weapon carrying" q11="Physical fighting" q12="Bullying at school" q13="Electronic Bullying" q14="Suicide consideration" q15="Suicide plan" q16="Attempted suicide" q17="Ever cigarette use" q18="Initiation of cigarette use" q19="Current cigarette use" q20="Smoked >10 cigarettes" q21="Electronic vapor product use" q22="Current electronic vapor use" q23="EVP from store" q24="Current smokeless tobacco use" q25="Current cigar use" q26="Ever alcohol use" q27="Initiation of alcohol use" q28="Ever marijuana use" q29="Initiation of marijuana use" q30="Ever prescription pain medicine use" q31="Ever cocaine use" q32="Ever inhalant use" q33="Ever steriod use" q34="Ever sexual intercourse" q35="Sex before 11 years" q36="Multiple sex partners" q37="Condom use" q38="Perception of weight" q39="Weight loss" q40="Breakfast eating" q41="Physical activity >= 5 days" q42="Television watching" q43="Computer use" q44="PE attendance" q45="Sports team participation" q46="Concussion" q47="Asthma" q48="Hours of sleep on school night" q49="Grades in school" qn6="Never or rarely wore a bicycle helmet" qn7="Never or rarely wore a helmet when rollerblading or skateboarding" qn8="Never or rarely wore a seat belt" qn9="Rode with a driver who had been drinking alcohol" qn10="Carried a weapon" qn11="Were in a physical fight" qn12="Were bullied on school property" qn13="Were electronically bullied" qn14="Seriously thought about killing themselves" qn15="Made a plan about how they would kill themselves" qn16="Tried to kill themselves" qn17="Ever tried cigarette smoking" qn18="Tried cigarette smoking for the first time before age 11 years" qn19="Currently smoked cigarettes" qn20="Smoked more than 10 cigarettes per day" qn21="Ever used an electronic vapor product" qn22="Currently used an electronic vapor product" qn23="Usually got their own electronic vapor products by buying them in a store" qn24="Currently used smokeless tobacco" qn25="Currently smoked cigars" qn26="Ever drank alcohol" qn27="Drank alcohol for the first time before age 11 years" qn28="Ever used marijuana" qn29="Tried marijuana for the first time before age 11 years" qn30="Ever took prescription pain medicine without a doctor's prescription or differently than how a doctor told them to use it" qn31="Ever used cocaine" qn32="Ever used inhalants" qn33="Ever took steriods without a doctor's prescription" qn34="Ever had sexual intercourse" qn35="Had sexual intercourse for the first time before age 11 years" qn36="Had sexual intercourse with three or more persons" qn37="Used a condom during last sexual intercourse" qn38="Described themselves as slightly or very overweight" qn39="Were trying to lose weight" qn40="Did not eat breakfast" qn41="Were physically active at least 60 minutes per day on 5 or more days" qn42="Watched television 3 or more hours per day" qn43="Played video or computer games or used a computer 3 or more hours per day" qn44="Attended physical education classes on 1 or more days" qn45="Played on at least one sports team" qn46="Had a concussion from playing a sport or being physically active" qn47="Had ever been told by a doctor or nurse that they had asthma" qn48="Had 8 or more hours of sleep" qn49="Made mostly A's or B's in school" qnfrcig="Currently smoked cigarettes frequently" qndaycig="Currently smoked cigarettes daily" qnfrevp="Currently used electronic vapor products frequently" qndayevp="Currently used elecctronic vapor products daily" qnfrcgr="Currently smoked cigars frequently" qndaycgr="Currently smoked cigars daily" qntb2="Currently smoked cigarettes or cigars" qntb3="Currently smoked cigarettes or cigars or used smokeless tobacco" qntb4="Currently smoked cigarettes or cigars or used smokeless tobacco or electronic vapor products" qntb5="Currently smoked cigarettes or used electronic vapor products" qnbk7day="Ate breakfast on all 7 days" qnpa0day="Did not participate in at least 60 minutes of physical activity on at least 1 day" qnpa7day="Were physically active at least 60 minutes per day on all 7 days" qndlype="Attended physical education (PE) classes on all 5 days" qdrivemarijuana="Drive when using marijuana" qcelldriving="Cell phone use while driving" qbullyweight="Victim of teasing b/c of physical appearance" qbullygay="Ever been teased b/c labeled GLB" qcigschool="Currently smoke at school >=1 days" qchewtobschool="Current snuff @ school" qalcoholschool="Current drink at school" qhowmarijuana="Usual use of marijuana" qmarijuanaschool="Marijuana use at school" qcurrentcocaine="Current cocaine use" qhallucdrug="Ever used hallucinogenic drugs" qprescription30d="Times take drug w/o prescription 30d" qgenderexp="Others description of your masc/fem" qtaughtHIV="Ever taught about AIDS/HIV at school" qtaughtsexed="Ever had sex education in school" qtaughtstd="Ever been taught in school about STDs" qtaughtbc="Ever been taught about BC methods in sch" qdietpop="Diet soda drinking >=1 time/day" qcoffeetea="Coffee/tea drinking >=1 time/day" qsportsdrink="Sports drinks" qenergydrink="Energy drink >=1 time/day" qsugardrink="Sugar-sweetened beverage >=1 time/day" qwater="Plain water" qfastfood="Meal/snack fast food >= 3 days" qwenthungry="How often went hungry" qmusclestrength="Muscle strengthening" qsunscreenuse="Sunscreen use outside" qindoortanning="Indoor tanning" qcurrentasthma="Current asthma" qwheresleep="Homelessness" qhivtesting="HIV testing" qsexid="Sexual identity" qsamesex="Sex of sexual contact" qoralsex="Ever had oral sex" qsynthmarijuana="Lifetime synthetic marijuana use" qndrivemarijuana="Drove a car or other vehicle when they had been using marijuana" qncelldriving="Talked on a cell phone use while driving" qnbullyweight="Have been the victim of teasing or name calling because of their weight, size, or physical appearance" qnbullygay="Have been the victim of teasing or name calling because someone thought they were gay, lesbian, or bisexual" qncigschool="Smoked cigarettes on school property" qnchewtobschool="Used chewing tobacco, snuff, or dip on school property" qnalcoholschool="Currently had at least one drink of alcohol on school property" qnhowmarijuana="Usually used marijuana by smoking it in a joint, bong, pipe, or blunt" qnmarijuanaschool="Used marijuana on school property" qncurrentcocaine="Currently used any form of cocaine" qnhallucdrug="Ever used hallucinogenic drugs" qnprescription30d="Currently took a prescription drug without a doctor's prescription" qngenderexp="Think other people at school would describe them as equally feminine and masculine" qntaughtHIV="Have been taught about AIDS or HIV infection in school" qntaughtsexed="Have had sex education in school" qntaughtstd="Have been taught in school about sexually transmitted diseases (STDs)" qntaughtbc="Have been taught in school about birth control methods" qndietpop="Drank a can, bottle, or glass of diet soda or pop" qncoffeetea="Drank a cup, can, or bottle of coffee, coffee drinks, or any kind of tea" qnsportsdrink="Did not drink a can, bottle, or glass of a sports drink" qnenergydrink="Drank a can, bottle, or glass of an energy drink" qnsugardrink="Drank a can, bottle, or glass of a sugar-sweetened beverage" qnwater="Did not drink a bottle or glass of plain water" qnfastfood="Ate at least one meal or snack from a fast food restaurant" qnwenthungry="Most of the time or always went hungry because there was not enough food in their home" qnmusclestrength="Did exercises to strengthen or tone their muscles on three or more days" qnsunscreenuse="Most of the time or always wear sunscreen" qnindoortanning="Used an indoor tanning device" qncurrentasthma="Had been told by a doctor or nurse that they had asthma and who still have asthma" qnwheresleep="Did not usually sleep in their parent's or guardian's home" qnhivtesting="Have been tested for HIV" qnoralsex="Have had oral sex" qnsynthmarijuana="Ever used synthetic marijuana" ; run;