/****************************************************************************************/
/* This SAS program reads ASCII format (text format) 2023 SADC data and creates a */
/* formatted and labeled SAS dataset. */
/* */
/* Change the file location specifications from 'c:\SADC2023' to the location where */
/* you have 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 */
/* 'district', 'state_a_m', or 'state_n_z' depending on which file you are analyzing. */
/* */
/* Note: Run '2023 SADC MS SAS Formats Program.sas' BEFORE you run */
/* '2023 SADC MS SAS Input Program.sas' to create the 2023SADC MS dataset. */
/****************************************************************************************/
filename datain 'c:\SADC2023\SADC_MS_2023_xxxxxxx.dat';
libname dataout 'c:\SADC2023';
libname library 'c:\SADC2023';
data dataout.sadc_ms_2023_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
qn6 227-229
qn7 230-232
qn8 233-235
qn9 236-238
qn10 239-241
qn11 242-244
qn12 245-247
qn13 248-250
qn14 251-253
qn15 254-256
qn16 257-259
qn17 260-262
qn18 263-265
qn19 266-268
qn20 269-271
qn21 272-274
qn22 275-277
qn23 278-280
qn24 281-283
qn25 284-286
qn26 287-289
qn27 290-292
qn28 293-295
qn29 296-298
qn30 299-301
qn31 302-304
qn32 305-307
qn33 308-310
qn34 311-313
qn35 314-316
qn36 317-319
qn37 320-322
qn38 323-325
qn39 326-328
qn40 329-331
qn41 332-334
qn42 335-337
qn43 338-340
qn44 341-343
qn45 344-346
qn46 347-349
qn47 350-352
qn48 353-355
qnfrcig 356-358
qndaycig 359-361
qnfrevp 362-364
qndayevp 365-367
qnfrskl 368-370
qndayskl 371-373
qnfrcgr 374-376
qndaycgr 377-379
qntb2 380-382
qntb3 383-385
qntb4 386-388
qntb5 389-391
qnbk7day 392-394
qnpa0day 395-397
qnpa7day 398-400
qndlype 401-403
;
/****************************************/
/* Assign formats to SAS variables */
/****************************************/
;
format
sitecode $SITE.
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.
;
/****************************************/
/* 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 15=2023"
weight="Overall 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"
race4="4-level race variable"
race7="7 level race for Youth Online"
q6="Bicycle helmet use"
q7="Rollerblading helmet use"
q8="Seat belt use"
q9="Riding with a drinking driver"
q10="Physical fighting"
q11="Seen someone get physically attacked"
q12="Treated badly because of race or ethnicity"
q13="Bullying at school"
q14="Electronic Bullying"
q15="Suicide consideration"
q16="Suicide plan"
q17="Attempted suicide"
q18="Ever cigarette use"
q19="Initiation of cigarette smoking"
q20="Current cigarette use"
q21="Smoked >10 cigarettes"
q22="Electronic vapor product use"
q23="Current electronic vapor product use"
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 sexual intercourse"
q34="Sex before 11 years"
q35="Number of sex partners"
q36="Condom use"
q37="Perception of weight"
q38="Weight loss"
q39="Breakfast eating"
q40="Physical activity >= 5 days"
q41="PE attendance"
q42="Sports team participation"
q43="Concussion"
q44="Social media"
q45="Current mental health"
q46="Sleep"
q47="Unstable housing"
q48="Grades in school"
qn6="Rarely or never wore a bicycle helmet"
qn7="Rarely or never wore a helmet when rollerblading or skateboarding"
qn8="Did not always wear a seat belt"
qn9="Ever rode with a driver who had been drinking alcohol"
qn10="Were ever in a physical fight"
qn11="Ever saw someone get physically attacked, beaten, stabbed, or shot in their neighborhood"
qn12="Felt that they were ever treated badly or unfairly in school because of their race or etnicity"
qn13="Were ever bullied on school property"
qn14="Were ever electronically bullied"
qn15="Ever seriously thought about killing themselves"
qn16="Ever made a plan about how they would kill themselves"
qn17="Smoked a cigarette for the first time before age 11 years"
qn18="Ever smoked a cigarette"
qn19="Smoked a cigarette before age 11 years"
qn20="Currently smoked cigarettes"
qn21="Smoked more than 10 cigarettes per day"
qn22="Ever used an electronic vapor product"
qn23="Currently used an electronic vapor product"
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 had sexual intercourse"
qn34="Had sexual intercourse for the first time before age 11 years"
qn35="Ever had sexual intercourse with three or more persons"
qn36="Used a condom during last sexual intercourse"
qn37="Described themselves as slightly or very overweight"
qn38="Were trying to lose weight"
qn39="Did not eat breakfast"
qn40="Were physically active at least 60 minutes per day on 5 or more days"
qn41="Attended physical education (PE) classes on 1 or more days"
qn42="Played on at least one sports team"
qn43="Had a concussion from playing a sport or being physically active"
qn44="Used social media several times a day"
qn45="Reported that their mental health was most of the time or always not good"
qn46="Get 8 or more hours of sleep"
qn47="Experienced unstable housing"
qn48="Described their grades in school as mostly A's or B's"
qnfrcig="Currently smoked cigarettes frequently"
qndaycig="Currently smoked cigarettes daily"
qnfrevp="Currently smoked 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"
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"
;
run;
国产精品久久久久久一级毛片