/****************************************************************************************/
/* This SAS program reads ASCII format (text format) 2001 YRBS data and creates a */
/* formatted and labeled SAS dataset. */
/* */
/* Change the file location specifications from "c:\yrbs2001" 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_2001_SAS_Format_Program.sas" BEFORE you run */
/* "YRBS_2001_SAS_Input_Program.sas" to create the 2001 YRBS dataset. */
/****************************************************************************************/
filename datain 'c:\yrbs2001\yrbs2001.dat';
libname dataout 'c:\yrbs2001';
libname library 'c:\yrbs2001';
data dataout.yrbs2001 ;
infile datain lrecl=130;
input
Q1 $ 1-1
Q2 $ 2-2
Q3 $ 3-3
Q4 $ 4-4
@5 Q5 8.2
@13 Q6 8.2
Q7 $ 21-21
Q8 $ 22-22
Q9 $ 23-23
Q10 $ 24-24
Q11 $ 25-25
Q12 $ 26-26
Q13 $ 27-27
Q14 $ 28-28
Q15 $ 29-29
Q16 $ 30-30
Q17 $ 31-31
Q18 $ 32-32
Q19 $ 33-33
Q20 $ 34-34
Q21 $ 35-35
Q22 $ 36-36
Q23 $ 37-37
Q24 $ 38-38
Q25 $ 39-39
Q26 $ 40-40
Q27 $ 41-41
Q28 $ 42-42
Q29 $ 43-43
Q30 $ 44-44
Q31 $ 45-45
Q32 $ 46-46
Q33 $ 47-47
Q34 $ 48-48
Q35 $ 49-49
Q36 $ 50-50
Q37 $ 51-51
Q38 $ 52-52
Q39 $ 53-53
Q40 $ 54-54
Q41 $ 55-55
Q42 $ 56-56
Q43 $ 57-57
Q44 $ 58-58
Q45 $ 59-59
Q46 $ 60-60
Q47 $ 61-61
Q48 $ 62-62
Q49 $ 63-63
Q50 $ 64-64
Q51 $ 65-65
Q52 $ 66-66
Q53 $ 67-67
Q54 $ 68-68
Q55 $ 69-69
Q56 $ 70-70
Q57 $ 71-71
Q58 $ 72-72
Q59 $ 73-73
Q60 $ 74-74
Q61 $ 75-75
Q62 $ 76-76
Q63 $ 77-77
Q64 $ 78-78
Q65 $ 79-79
Q66 $ 80-80
Q67 $ 81-81
Q68 $ 82-82
Q69 $ 83-83
Q70 $ 84-84
Q71 $ 85-85
Q72 $ 86-86
Q73 $ 87-87
Q74 $ 88-88
Q75 $ 89-89
Q76 $ 90-90
Q77 $ 91-91
Q78 $ 92-92
Q79 $ 93-93
Q80 $ 94-94
Q81 $ 95-95
Q82 $ 96-96
Q83 $ 97-97
Q84 $ 98-98
Q85 $ 99-99
Q86 $ 100-100
Q87 $ 101-101
Q88 $ 102-102
Q89 $ 103-103
Q90 $ 104-104
Q91 $ 105-105
Q92 $ 106-106
Q93 $ 107-107
Q94 $ 108-108
Q95 $ 109-109
@110 WEIGHT 8.4
@118 PSU 6.0
@124 STRATUM 3.0
GREG $ 127-127
METROST $ 128-128
;
************************************
* Assign formats to SAS variables.*
************************************;
format
Q1 $Q1H. Q2 $Q2H. Q3 $Q3H. Q4 $Q4H. Q5 4.2 Q6 6.2
Q7 $Q7H. Q8 $Q8H. Q9 $Q9H. Q10 $Q10H.
Q11 $Q11H. Q12 $Q12H. Q13 $Q13H. Q14 $Q14H. Q15 $Q15H.
Q16 $Q16H. Q17 $Q17H. Q18 $Q18H. Q19 $Q19H. Q20 $Q20H.
Q21 $Q21H. Q22 $Q22H. Q23 $Q23H. Q24 $Q24H. Q25 $Q25H.
Q26 $Q26H. Q27 $Q27H. Q28 $Q28H. Q29 $Q29H. Q30 $Q30H.
Q31 $Q31H. Q32 $Q32H. Q33 $Q33H. Q34 $Q34H. Q35 $Q35H.
Q36 $Q36H. Q37 $Q37H. Q38 $Q38H. Q39 $Q39H. Q40 $Q40H.
Q41 $Q41H. Q42 $Q42H. Q43 $Q43H. Q44 $Q44H. Q45 $Q45H.
Q46 $Q46H. Q47 $Q47H. Q48 $Q48H. Q49 $Q49H. Q50 $Q50H.
Q51 $Q51H. Q52 $Q52H. Q53 $Q53H. Q54 $Q54H. Q55 $Q55H.
Q56 $Q56H. Q57 $Q57H. Q58 $Q58H. Q59 $Q59H. Q60 $Q60H.
Q61 $Q61H. Q62 $Q62H. Q63 $Q63H. Q64 $Q64H. Q65 $Q65H.
Q66 $Q66H. Q67 $Q67H. Q68 $Q68H. Q69 $Q69H. Q70 $Q70H.
Q71 $Q71H. Q72 $Q72H. Q73 $Q73H. Q74 $Q74H. Q75 $Q75H.
Q76 $Q76H. Q77 $Q77H. Q78 $Q78H. Q79 $Q79H. Q80 $Q80H.
Q81 $Q81H. Q82 $Q82H. Q83 $Q83H. Q84 $Q84H. Q85 $Q85H.
Q86 $Q86H. Q87 $Q87H. Q88 $Q88XXH. Q89 $Q89XXH.
Q90 $Q90XXH. Q91 $Q91XXH. Q92 $Q92XXH. Q93 $Q93XXH.
Q94 $Q94XXH. Q95 $Q95XXH. GREG $HGREG. METROST $HMETRO.;
***********************************
* Assign labels to SAS variables.*
***********************************;
label
Q1="How old are you"
Q2="What is your sex"
Q3="In what grade are you"
Q4="How do you describe yourself"
Q5="How tall are you"
Q6="How much do you weigh"
Q7="How were your grades past 12 months"
Q8="How often wear motorcycle helmet"
Q9="How often wear bicycle helmet"
Q10="How often wear seat belt"
Q11="How often ride w/drinking driver 30 days"
Q12="How often drive while drinking 30 days"
Q13="Carried weapon 30 days"
Q14="Carried gun 30 days"
Q15="Carried weapon at school 30 days"
Q16="How many days feel unsafe@school 30 days"
Q17="How many times threatened@school 12 mos"
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="Show age proof buying cigarettes 30 days"
Q34="How many days smoke @ school 30 days"
Q35="Have you ever smoked daily"
Q36="Tried to quit smoking past 12 months"
Q37="How many days use snuff past 30 days"
Q38="Days use snuff school property 30 days"
Q39="How many days smoke cigars 30 days"
Q40="How many days drink alcohol"
Q41="How old when first drank alcohol"
Q42="How many days drink alcohol 30 days"
Q43="How many days have 5+ drinks 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 sniffed glue 30 days"
Q53="How many times used heroin"
Q54="How many times used methamphetamines"
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="Ever been/gotten someone pregnant"
Q66="How do you describe your weight"
Q67="What are you trying to do about weight"
Q68="Did you exercise to lose weight 30 days"
Q69="Did you eat less to lose weight 30 days"
Q70="Did you fast to lose weight 30 days"
Q71="Did you take pill to lose weight 30 days"
Q72="Did you vomit to lose weight 30 days"
Q73="How many times fruit juice 7 days"
Q74="How many times fruit 7 days"
Q75="How many time green salad 7 days"
Q76="How many times potatoes 7 days"
Q77="How many times carrots 7 days"
Q78="How many times other vegetables 7 days"
Q79="How many glass of milk 7 days"
Q80="Did you do vigorous exercise 7 days"
Q81="Did you do moderate exercise 7 days"
Q82="Did you do toning exercise 7 days"
Q83="How many hours watch TV"
Q84="How many days go to PE class"
Q85="How many minutes exercise in PE class"
Q86="On how many sports team 12 mos"
Q87="Ever taught about AIDS/HIV @ school"
Q88="Seatbelt while driving"
Q89="No usual brand"
Q90="Ecstacy one or more time"
Q91="Ever used LSD"
Q92="Injured while playing sports"
Q93="When was the last check-up when not sick"
Q94="Dentist in last year"
Q95="How often wear sunscreen on sunny day"
weight="Analysis weight"
stratum="Stratum"
psu="PSU"
greg="Geographic Region"
metrost="Metropolitan Status"
;
run;
国产精品久久久久久一级毛片