/***/ /* This SAS program reads ASCII format (text format) 2021 SADC data and creates a */ /* formatted and labeled SAS dataset. */ /* */ /* Change the file location specifications from 'c:\sadc2021' to the location where */ /* you downloaded, unzipped, and 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 */ /* 'national', 'district', 'state_a_d', 'state_e_h', 'state_i_l', 'state_m_p', */ /* 'state_q_t', or 'state_u_z' depending on which file you are analyzing. */ */ /* */ /* Note: Run '2021 SADC SAS Formats Program.sas' BEFORE you run */ /* '2021 SADC SAS Input Program.sas' to create the 2021SADC dataset. */ /***/ filename datain 'c:\sadc2021\sadc_2021_xxxxxxx.dat'; libname dataout 'c:\sadc2021'; libname library 'c:\sadc2021'; data dataout.sadc_2021_xxxxxxx; infile datain lrecl=900; input sitecode $ 1-5 sitename $ 6-55 sitetype $ 56-105 sitetypenum 106-113 year 114-121 survyear 122-124 weight 125-134 stratum 135-142 PSU 143-150 record 151-158 age 159-161 sex 162-164 grade 165-167 race4 168-170 race7 171-173 stheight 174-181 stweight 182-189 bmi 190-197 bmipct 198-205 qnobese 206-208 qnowt 209-211 q65 $ 212-212 q64 $ 213-213 sexid 214-221 sexid2 222-229 sexpart 230-237 sexpart2 238-245 q8 $ 246-246 q9 $ 247-247 q10 $ 248-248 q11 $ 249-249 q12 $ 250-250 q13 $ 251-251 q14 $ 252-252 q15 $ 253-253 q16 $ 254-254 q17 $ 255-255 q18 $ 256-256 q19 $ 257-257 q20 $ 258-258 q21 $ 259-259 q22 $ 260-260 q23 $ 261-261 q24 $ 262-262 q25 $ 263-263 q26 $ 264-264 q27 $ 265-265 q28 $ 266-266 q29 $ 267-267 q30 $ 268-268 q31 $ 269-269 q32 $ 270-270 q33 $ 271-271 q34 $ 272-272 q35 $ 273-273 q36 $ 274-274 q37 $ 275-275 q38 $ 276-276 q39 $ 277-277 q40 $ 278-278 q41 $ 279-279 q42 $ 280-280 q43 $ 281-281 q44 $ 282-282 q45 $ 283-283 q46 $ 284-284 q47 $ 285-285 q48 $ 286-286 q49 $ 287-287 q50 $ 288-288 q51 $ 289-289 q52 $ 290-290 q53 $ 291-291 q54 $ 292-292 q55 $ 293-293 q56 $ 294-294 q57 $ 295-295 q58 $ 296-296 q59 $ 297-297 q60 $ 298-298 q61 $ 299-299 q62 $ 300-300 q63 $ 301-301 q66 $ 302-302 q67 $ 303-303 q68 $ 304-304 q69 $ 305-305 q70 $ 306-306 q71 $ 307-307 q72 $ 308-308 q73 $ 309-309 q74 $ 310-310 q75 $ 311-311 q76 $ 312-312 q77 $ 313-313 q78 $ 314-314 q79 $ 315-315 q80 $ 316-316 q81 $ 317-317 q82 $ 318-318 q83 $ 319-319 q84 $ 320-320 q85 $ 321-321 q86 $ 322-322 q87 $ 323-323 qn8 324-326 qn9 327-329 qn10 330-332 qn11 333-335 qn12 336-338 qn13 339-341 qn14 342-344 qn15 345-347 qn16 348-350 qn17 351-353 qn18 354-356 qn19 357-359 qn20 360-362 qn21 363-365 qn22 366-368 qn23 369-371 qn24 372-374 qn25 375-377 qn26 378-380 qn27 381-383 qn28 384-386 qn29 387-389 qn30 390-392 qn31 393-395 qn32 396-398 qn33 399-401 qn34 402-404 qn35 405-407 qn36 408-410 qn37 411-413 qn38 414-416 qn39 417-419 qn40 420-422 qn41 423-425 qn42 426-428 qn43 429-431 qn44 432-434 qn45 435-437 qn46 438-440 qn47 441-443 qn48 444-446 qn49 447-449 qn50 450-452 qn51 453-455 qn52 456-458 qn53 459-461 qn54 462-464 qn55 465-467 qn56 468-470 qn57 471-473 qn58 474-476 qn59 477-479 qn60 480-482 qn61 483-485 qn62 486-488 qn63 489-491 qn66 492-494 qn67 495-497 qn68 498-500 qn69 501-503 qn70 504-506 qn71 507-509 qn72 510-512 qn73 513-515 qn74 516-518 qn75 519-521 qn76 522-524 qn77 525-527 qn78 528-530 qn79 531-533 qn80 534-536 qn81 537-539 qn82 540-542 qn83 543-545 qn84 546-548 qn85 549-551 qn86 552-554 qn87 555-557 qnfrcig 558-560 qndaycig 561-563 qnfrevp 564-566 qndayevp 567-569 qnfrskl 570-577 qndayskl 578-585 qnfrcgr 586-593 qndaycgr 594-601 qntb2 602-604 qntb3 605-607 qntb4 608-610 qntb5 611-613 qniudimp 614-616 qnothhpl 617-619 qndualbc 620-622 qnbcnone 623-625 qnfr0 626-628 qnfr1 629-631 qnfr2 632-634 qnveg0 635-637 qnveg1 638-640 qnveg2 641-643 qnveg3 644-646 qnsoda1 647-649 qnsoda2 650-652 qnmilk1 653-655 qnmilk3 656-658 qnbk7day 659-661 qnpa0day 662-664 qnpa7day 665-667 qndlype 668-670 qnnodnt 671-673 qclose2people $ 674-674 qcovidpjloss $ 675-675 qcovidmenstat $ 676-676 qcurrentopioid $ 677-677 qhallucdrug $ 678-678 qmusclestrength $ 679-679 qparentalmonitoring $ 680-680 qsportsdrink $ 681-681 qsunburn $ 682-682 qwater $ 683-683 qnclose2people 684-691 qncovidpjloss 692-699 qncovidmenstat 700-707 qncurrentopioid 708-710 qnhallucdrug 711-713 qnillict 714-716 qnmusclestrength 717-719 qnparentalmonitoring 720-727 qnsportsdrink 728-730 qnspdrk1 731-733 qnspdrk2 734-736 qnsunburn 737-739 qnwater 740-742 qnwater1 743-745 qnwater2 746-748 qnwater3 749-751 ; // /* Assign formats to SAS variables */ // ; format sitecode $SITE. weight 10.4 age AGE. sex SEX. grade GRADE. race4 RACE4S. race7 RACE7S. stheight 8.2 stweight 8.2 bmi 8.4 bmipct 8.2 q65 $H65S. q64 $H64S. sexid SEXID. sexid2 SEXIDB. sexpart SEXPART. sexpart2 SEXPARTB. 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. 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. qclose2people $CLOSE2P. qcovidpjloss $JLOSS. qcovidmenstat $MENSTAT. qcurrentopioid $CURROPI. qhallucdrug $LSD. qmusclestrength $MUSCLE. qparentalmonitoring $MONITOR. qsportsdrink $SPRTDRNK. qsunburn $SUNBURN. qwater $WATER. ; // /* Assign labels to SAS variables */ // ; label sitecode="Site code" sitename="Site name" sitetype="Site type" sitetypenum="1=District, 2=State, 3=National" year="4-digit Year of survey" survyear="1=1991...16=2021" weight="Analysis weight" stratum="Analysis stratum" PSU="Analysis primary sampling unit" record="Record ID" age="1= <=12...7=18+ years old" sex="1=Female, 2=Male" grade="1=9th...4=12th grade" race4="4-level race variable" race7="7-level race variable" stheight="Height in meters" stweight="Weight in kilograms" bmi="Body Mass Index" bmipct="BMI percentile" qnobese="Had obesity" qnowt="Were Overweight" q65="Sexual identity" q64="Sex of sexual contacts" sexid="Sexual identity" sexid2="Collapsed sexual identity" sexpart="Sex of sex contact(s)" sexpart2="Collapsed sex of sex contact(s)" q8="Seat belt use" q9="Riding with a drinking driver" q10="Drinking and driving" q11="Texting and driving" q12="Weapon carrying at school" q13="Gun carrying" q14="Safety concerns at school" q15="Threatened at school" q16="Times in fight past 12 months" q17="Physical fighting at school" q18="Saw physical violence in neighborhood" q19="Ever been physically forced sexual intercourse" q20="Sexual violence" q21="Sexual dating violence" q22="Physical dating violence" q23="Bullied at school" q24="Electronic bullying" q25="Sad or hopeless" q26="Considered suicide" q27="Made a suicide plan past 12 months" q28="Actually attempted suicide" q29="Injurious suicide attempt" q30="Ever cigarette use" q31="Initiation of cigarette smoking" q32="Current cigarette use" q33="Smoked >10 cigarettes" q34="Electronic vapor product use" q35="Current electronic vapor product use" q36="EVP from store" q37="Current smokeless tobacco use" q38="Current cigar use" q39="All tobacco product cessation" q40="Initiation of alcohol use" q41="Current alcohol use" q42="Current binge drinking" q43="Drinks in a row past 30 days" q44="Source of alcohol" q45="Ever marijuana use" q46="Initiation of marijuana use" q47="Current marijuana use" q48="Ever synthetic marijuana use" q49="Ever prescription pain medicine use" q50="Ever cocaine use" q51="Ever inhalant use" q52="Ever heroin use" q53="Ever methamphetamine use" q54="Ever ecstasy use" q55="Illegal injected drug use" q56="Illegal drugs at school" q57="Ever sexual intercourse" q58="Sex before 13 years" q59="Number of sex partners" q60="Current sexual activity" q61="Alcohol/drugs and sex" q62="Condom use" q63="Birth control pill use" q66="Perception of weight" q67="Weight loss" q68="Fruit juice drinking" q69="Fruit eating" q70="Green salad eating" q71="Potato eating" q72="Carrot eating" q73="Other vegetable eating" q74="No soda drinking" q75="No milk drinking" q76="Breakfast eating" q77="Physical activity >= 5 days" q78="Screen time" q79="PE attendance" q80="Sports team participation" q81="Concussion" q82="HIV testing" q83="STD testing" q84="Oral health care" q85="Current mental health" q86="Hours of sleep on school night" q87="Homelessness" qn8="Did not always wear a seat belt" qn9="Rode with a driver who had been drinking alcohol" qn10="Drove a car or other vehicle when they had been drinking alcohol" qn11="Texted or e-mailed while driving a car or other vehicle" qn12="Carried a weapon on school property" qn13="Carried a gun" qn14="Did not go to school because they felt unsafe at school or on their way to or from school" qn15="Were threatened or injured with a weapon on school property" qn16="Were in a physical fight" qn17="Were in a physical fight on school property" qn18="Ever saw someone get physically attacked, beaten, stabbed, or shot in their neighborhood" qn19="Were ever physically forced to have sexual intercourse" qn20="Experienced sexual violence" qn21="Experienced sexual dating violence" qn22="Experienced physical dating violence" qn23="Were bullied on school property" qn24="Were electronically bullied" qn25="Felt sad or hopeless" qn26="Seriously considered attempting suicide" qn27="Made a plan about how they would attempt suicide" qn28="Attempted suicide" qn29="Had a suicide attempt that resulted in an injury, poisoning, or overdose that had to be treated by a doctor or nurse" qn30="Ever tried cigarette smoking" qn31="First tried cigarette smoking before age 13 years" qn32="Currently smoked cigarettes" qn33="Smoked more than 10 cigarettes per day" qn34="Ever used an electronic vapor product" qn35="Currently used an electronic vapor product" qn36="Usually got their electronic vapor products by buying them themselves in a convenience store, supermarket, discount store, or gas station" qn37="Currently used smokeless tobacco" qn38="Currently smoked cigars" qn39="Tried to quit using all tobacco products" qn40="Had their first drink of alcohol before age 13 years" qn41="Currently drank alcohol" qn42="Currently were binge drinking" qn43="Reported that the largest number of drinks they had in a row was 10 or more" qn44="Usually got the alcohol they drank by someone giving it to them" qn45="Ever used marijuana" qn46="tried marijuana for the first time before age 13 years" qn47="Currently used marijuana" qn48="Ever used synthetic marijuana" qn49="Ever took prescription pain medicine without a doctor's prescription or differently than how a doctor told them to use it" qn50="Ever used cocaine" qn51="Ever used inhalants" qn52="Ever used heroin" qn53="Ever used methamphetamines" qn54="Ever used ecstasy" qn55="Ever injected any illegal drug" qn56="Were offered, sold, or given an illegal drug on school property" qn57="Ever had sexual intercourse" qn58="Had sexual intercourse for the first time before age 13 years" qn59="Had sexual intercourse with four or more persons during their life" qn60="Were currently sexually active" qn61="Drank alcohol or used drugs before last sexual intercourse" qn62="Used a condom during last sexual intercourse" qn63="Used birth control pills before last sexual intercourse with opposite-sex partner" qn66="Described themselves as slightly or very overweight" qn67="Were trying to lose weight" qn68="Did not drink fruit juice" qn69="Did not eat fruit" qn70="Did not eat green salad" qn71="Did not eat potatoes" qn72="Did not eat carrots" qn73="Did not eat other vegetables" qn74="Did not drink a can, bottle, or glass of soda or pop" qn75="Did not drink milk" qn76="Did not eat breakfast" qn77="Were physically active at least 60 minutes per day on 5 or more days" qn78="Spent 3 or more hours per day on screen time" qn79="Attended physical education (PE) classes on 1 or more days" qn80="Played on at least one sports team" qn81="Had a concussion from playing a sport or being physically active" qn82="Were ever tested for human immunodeficiency virus (HIV)" qn83="Were ever tested for a sexually transmitted disease (STD)" qn84="Saw a dentist" qn85="Reported that their mental health was most of the time or always not good" qn86="Got 8 or more hours of sleep" qn87="Usually did not sleep in their parent's or guardian's home" qnfrcig="Currently smoked cigarettes frequently" qndaycig="Currently smoked cigarettes daily" qnfrevp="Currently used electronic vapor products frequently" qndayevp="Currently used electronic vapor products daily" qnfrskl="Currently used smokeless tobacco frequently" qndayskl="Currently used smokeless tobacco 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" qniudimp="Used an IUD (such as Mirena or ParaGard) or implant (such as Implanon or Nexplanon) before last sexual intercourse with an opposite-sex partner" qnothhpl="Used birth control pills; an IUD (such as Mirena or ParaGard) or implant (such as Implanon or Nexplanon); or a shot (such as Depo-Provera), patch (such as OrthoEvra), or birth control ring (such as NuvaRing) before last sexual intercourse with an opposite-sex partner" qndualbc="Used both a condom during last sexual intercourse with an opposite-sex partner and birth control pills; an IUD (such as Mirena or ParaGard) or implant (such as Implanon or Nexplanon); or a shot (such as Depo-Provera), patch (such as OrthoEvra), or birth control ring (such as NuvaRing) before last sexual intercourse with an opposite-sex partner" qnbcnone="Did not use any method to prevent pregnancy during last sexual intercourse with an opposite-sex partner" qnfr0="Did not eat fruit or drink 100% fruit juices" qnfr1="Ate fruit or drank 100% fruit juices one or more times per day" qnfr2="Ate fruit or drank 100% fruit juices two or more times per day" qnveg0="Did not eat vegetables" qnveg1="Ate vegetables one or more times per day" qnveg2="Ate vegetables two or more times per day" qnveg3="Ate vegetables three or more times per day" qnsoda1="Drank a can, bottle, or glass of soda or pop one or more times per day" qnsoda2="Drank a can, bottle, or glass of soda or pop two or more times per day" qnmilk1="Drank one or more glasses per day of milk" qnmilk3="Drank three or more glasses per day of milk" 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 classes on all 5 days" qnnodnt="Never saw a dentist" qclose2people="Feel close to people at their school" qcovidpjloss="Job loss during pandemic" qcovidmenstat="Mental health during pandemic" qcurrentopioid="Current prescription pain medicine use" qhallucdrug="Ever used hallucinogenic drugs" qmusclestrength="Muscle strengthening" qparentalmonitoring="Parental monitoring" qsportsdrink="Sports drinks" qsunburn="Sunburn" qwater="Plain water" qnclose2people="Strongly agree or agree that they feel close to people at their school" qncovidpjloss="Reported that their parent or other adult in their home lost their job during the COVID-19 pandemic" qncovidmenstat="Reported that their mental health was most of the time or always not good during the COVID-19 pandemic" qncurrentopioid="Current prescription pain medicine use without a doctor's prescription or differently than how a doctor told them to use it" qnhallucdrug="Ever used hallucinogenic drugs" qnillict="Ever used select illicit drugs" qnmusclestrength="Did exercises to strengthen or tone their muscles on three or more days" qnparentalmonitoring="Reported that their parents or other adults in their family most of the time or always know where they are going or with whom they will be" qnsportsdrink="Did not drink a can, bottle, or glass of a sports drink" qnspdrk1="Drank a can, bottle, or glass of a sports drink one or more times per day" qnspdrk2="Drank a can, bottle, or glass of a sports drink two or more times per day" qnsunburn="Had a sunburn" qnwater="Did not drink a bottle or glass of plain water" qnwater1="Drank a bottle or glass of plain water one or more times per day" qnwater2="drank a bottle or glass of plain water two or more times per day" qnwater3="drank a bottle or glass of plain water three or more times per day" ; run;