/****************************************************************************************/
/* This SAS program reads ASCII format (text format) 2007 YRBS data and creates a */
/* formatted and labeled SAS dataset. */
/* */
/* Change the file location specifications from "c:\yrbs2007" 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_2007_SAS_Format_Program.sas" BEFORE you run */
/* "YRBS_2007_SAS_Input_Program.sas" to create the 2007 YRBS dataset. */
/****************************************************************************************/
filename datain 'c:\yrbs2007\yrbs2007.dat';
libname dataout 'c:\yrbs2007';
libname library 'c:\yrbs2007';
data dataout.yrbs2007 ;
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 130-130
QN9 131-131
QN10 132-132
QN11 133-133
QN12 134-134
QN13 135-135
QN14 136-136
QN15 137-137
QN16 138-138
QN17 139-139
QN18 140-140
QN19 141-141
QN20 142-142
QN21 143-143
QN22 144-144
QN23 145-145
QN24 146-146
QN25 147-147
QN26 148-148
QN27 149-149
QN28 150-150
QN29 151-151
QN30 152-152
QN31 153-153
QN32 154-154
QN33 155-155
QN34 156-156
QN35 157-157
QN36 158-158
QN37 159-159
QN38 160-160
QN39 161-161
QN40 162-162
QN41 163-163
QN42 164-164
QN43 165-165
QN44 166-166
QN45 167-167
QN46 168-168
QN47 169-169
QN48 170-170
QN49 171-171
QN50 172-172
QN51 173-173
QN52 174-174
QN53 175-175
QN54 176-176
QN55 177-177
QN56 178-178
QN57 179-179
QN58 180-180
QN59 181-181
QN60 182-182
QN61 183-183
QN62 184-184
QN63 185-185
QN64 186-186
QN65 187-187
QN66 188-188
QN67 189-189
QN68 190-190
QN69 191-191
QN70 192-192
QN71 193-193
QN72 194-194
QN73 195-195
QN74 196-196
QN75 197-197
QN76 198-198
QN77 199-199
QN78 200-200
QN79 201-201
QN80 202-202
QN81 203-203
QN82 204-204
QN83 205-205
QN84 206-206
QN85 207-207
QN86 208-208
QN87 209-209
QN88 210-210
QN89 211-211
QN90 212-212
QN91 213-213
QN92 214-214
QN93 215-215
QN94 216-216
QN95 217-217
QN96 218-218
QN97 219-219
QN98 220-220
QNFRVG 221-221
QNFRCIG 222-222
QNDLYPE 223-223
QNANYTOB 224-224
QNROVWGT 225-225
QNOVWGT 226-226
@358 Weight 12.7
@370 PSU 5.0
@375 Stratum 4.0
BMIPct 379-383
RaceEth $ 384-385
;
************************************
* 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 $Hrace.
;
***********************************
* 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="Property stolen at school"
Q18="How many times in fight 12 mos"
Q19="How many times injured in fight 12 mos"
Q20="How many times in fight @ school 12 mos"
Q21="Did boyfriend/girlfriend hit/slap 12 mo"
Q22="Have you been forced to have sex"
Q23="Ever feel sad or hopeless 12 mos"
Q24="Ever considered suicide 12 mos"
Q25="Ever make suicide plan 12 mos"
Q26="Ever attempt 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="Ecstacy 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="Did you do vigorous exercise 7 days"
Q91="Did you do moderate exercise 7 days"
Q92="How many minutes exercise in PE class"
Q93="Injured while playing sports"
Q94="Ever tested for HIV"
Q95="Sunscreen use outside"
Q96="Protection from the sun"
Q97="Hours of sleep on school night"
Q98="How do you describe your health"
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="Prop stolen at school 12 mos"
QN18="Fought 1+ times 12 mos"
QN19="Injured/treated 1+ times 12 mos"
QN20="Fought school 1+ times 12 mos"
QN21="Hit by bf/gf 12 mos"
QN22="Forced to have sex"
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="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="Bought alcohol in store 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="Got to PE class 1+ days average week"
QN84="Played on 1+ sports teams 12 mos"
QN85="Taught about AIDS in school"
QN86="Told by doctor/nurse they had asthma"
QN87="With current asthma"
QN88="Never/rarely wear helmet"
QN89="Used LSD 1+ times"
QN90="Vigorous exercise past 7 days"
QN91="Moderate exercise past 7 days"
QN92="Exercised in PE 21+ minutes"
QN93="Injured while exercising"
QN94="Tested for HIV"
QN95="Mostly or always wear sunscreen"
QN96="Mostly or always protect from sun"
QN97="Get 8+ hours sleep"
QN98="Describe health as fair or poor"
qnfrcig="Smoked on 20 past 30 days"
qnfrvg="Ate 5+ fruits/vegetables 7 days"
qndlype="Attended PE class daily"
qnrovwgt="At risk for becoming overweight"
qnovwgt="Overweight"
qnanytob="Used any tobacco past 30 days"
weight="Analysis weight"
stratum="Stratum"
psu="PSU"
bmipct="Body Mass Index Percentage"
raceeth="Race/Ethnicity"
;
run;
国产精品久久久久久一级毛片