/***/ /* This SAS program reads ASCII format (text format) 2003 YRBS data and creates a */ /* formatted and labeled SAS dataset. */ /* */ /* Change the file location specifications from "c:\yrbs2003" 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_2003_SAS_Format_Program.sas" BEFORE you run */ /* "YRBS_2003_SAS_Input_Program.sas" to create the 2003 YRBS dataset. */ /***/ filename datain 'c:\yrbs2003\yrbs2003.dat'; libname dataout 'c:\yrbs2003'; libname library 'c:\yrbs2003'; data dataout.yrbs2003 ; infile datain lrecl=400; input Q1 $ 1-1 Q2 $ 2-2 Q3 $ 3-3 Q4 $ 4-5 @6 Q5 8.2 @14 Q6 8.2 Q7 $ 22-22 Q8 $ 23-23 Q9 $ 24-24 Q10 $ 25-25 Q11 $ 26-26 Q12 $ 27-27 Q13 $ 28-28 Q14 $ 29-29 Q15 $ 30-30 Q16 $ 31-31 Q17 $ 32-32 Q18 $ 33-33 Q19 $ 34-34 Q20 $ 35-35 Q21 $ 36-36 Q22 $ 37-37 Q23 $ 38-38 Q24 $ 39-39 Q25 $ 40-40 Q26 $ 41-41 Q27 $ 42-42 Q28 $ 43-43 Q29 $ 44-44 Q30 $ 45-45 Q31 $ 46-46 Q32 $ 47-47 Q33 $ 48-48 Q34 $ 49-49 Q35 $ 50-50 Q36 $ 51-51 Q37 $ 52-52 Q38 $ 53-53 Q39 $ 54-54 Q40 $ 55-55 Q41 $ 56-56 Q42 $ 57-57 Q43 $ 58-58 Q44 $ 59-59 Q45 $ 60-60 Q46 $ 61-61 Q47 $ 62-62 Q48 $ 63-63 Q49 $ 64-64 Q50 $ 65-65 Q51 $ 66-66 Q52 $ 67-67 Q53 $ 68-68 Q54 $ 69-69 Q55 $ 70-70 Q56 $ 71-71 Q57 $ 72-72 Q58 $ 73-73 Q59 $ 74-74 Q60 $ 75-75 Q61 $ 76-76 Q62 $ 77-77 Q63 $ 78-78 Q64 $ 79-79 Q65 $ 80-80 Q66 $ 81-81 Q67 $ 82-82 Q68 $ 83-83 Q69 $ 84-84 Q70 $ 85-85 Q71 $ 86-86 Q72 $ 87-87 Q73 $ 88-88 Q74 $ 89-89 Q75 $ 90-90 Q76 $ 91-91 Q77 $ 92-92 Q78 $ 93-93 Q79 $ 94-94 Q80 $ 95-95 Q81 $ 96-96 Q82 $ 97-97 Q83 $ 98-98 Q84 $ 99-99 Q85 $ 100-100 Q86 $ 101-101 Q87 $ 102-102 Q88 $ 103-103 Q89 $ 104-104 Q90 $ 105-105 Q91 $ 106-106 Q92 $ 107-107 Q93 $ 108-108 Q94 $ 109-109 Q95 $ 110-110 Q96 $ 111-111 Q97 $ 112-112 QN7 $ 113-113 QN8 $ 114-114 QN9 $ 115-115 QN10 $ 116-116 QN11 $ 117-117 QN12 $ 118-118 QN13 $ 119-119 QN14 $ 120-120 QN15 $ 121-121 QN16 $ 122-122 QN17 $ 123-123 QN18 $ 124-124 QN19 $ 125-125 QN20 $ 126-126 QN21 $ 127-127 QN22 $ 128-128 QN23 $ 129-129 QN24 $ 130-130 QN25 $ 131-131 QN26 $ 132-132 QN27 $ 133-133 QN28 $ 134-134 QN29 $ 135-135 QN30 $ 136-136 QN31 $ 137-137 QN32 $ 138-138 QN33 $ 139-139 QN34 $ 140-140 QN35 $ 141-141 QN36 $ 142-142 QN37 $ 143-143 QN38 $ 144-144 QN39 $ 145-145 QN40 $ 146-146 QN41 $ 147-147 QN42 $ 148-148 QN43 $ 149-149 QN44 $ 150-150 QN45 $ 151-151 QN46 $ 152-152 QN47 $ 153-153 QN48 $ 154-154 QN49 $ 155-155 QN50 $ 156-156 QN51 $ 157-157 QN52 $ 158-158 QN53 $ 159-159 QN54 $ 160-160 QN55 $ 161-161 QN56 $ 162-162 QN57 $ 163-163 QN58 $ 164-164 QN59 $ 165-165 QN60 $ 166-166 QN61 $ 167-167 QN62 $ 168-168 QN63 $ 169-169 QN64 $ 170-170 QN65 $ 171-171 QN66 $ 172-172 QN67 $ 173-173 QN68 $ 174-174 QN69 $ 175-175 QN70 $ 176-176 QN71 $ 177-177 QN72 $ 178-178 QN73 $ 179-179 QN74 $ 180-180 QN75 $ 181-181 QN76 $ 182-182 QN77 $ 183-183 QN78 $ 184-184 QN79 $ 185-185 QN80 $ 186-186 QN81 $ 187-187 QN82 $ 188-188 QN83 $ 189-189 QN84 $ 190-190 QN85 $ 191-191 QN86 $ 192-192 QN87 $ 193-193 QN88 $ 194-194 QN89 $ 195-195 QN90 $ 196-196 QN91 $ 197-197 QN92 $ 198-198 QN93 $ 199-199 QN94 $ 200-200 QN95 $ 201-201 QN96 $ 202-202 QN97 $ 203-203 QNFRCIG $ 204-204 QNSTORE $ 205-205 QNABSTSX $ 206-206 QNRESPSX $ 207-207 QNFRVG $ 208-208 QNDLYPE $ 209-209 QNROVWGT $ 210-210 QNOVWGT $ 211-211 QNTENCIG $ 212-212 QNANYTOB $ 213-213 QNMINPA $ 214-214 QNNOPA $ 215-215 @216 Weight 8.4 @224 PSU 6.0 @230 Stratum 3.0 GREG $ 233-233 METROST $ 234-234 ; * * Assign formats to SAS variables.* *; format Q1 $H1S. Q2 $H2S. Q3 $H3S. Q4 $H4S. Q5 4.2 Q6 6.2 Q7 $H7S. 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. 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 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 many days drink @ school 30 days" Q44="How many times smoke marijuana" Q45="How old when first tried marijuana" Q46="How many times use marijuana 30 days" Q47="How many times marijuana@school 30 days" Q48="How many times use cocaine" Q49="How many times use cocaine 30 days" Q50="How many times sniffed glue" Q51="How many times sniffed glue 30 days" 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="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="Wear seat belt while driving" Q89="Show age proof buying cigarettes 30 days" Q90="No usual brand" Q91="Ever used LSD" Q92="Play video games 3+ hours" Q93="Injured while playing sports" Q94="Last time saw dentist" Q95="Wear sunscreen on sunny day" Q96="Ever been told you have asthma" Q97="Had asthma attack past 12 months" qn7="Grades mostly Ds and Fs past 12 months" qn8="Rarely or never wore bicycle helmets" qn9="Rarely or never wore seatbelts" qn10="Rode with a driver who had been drinking alcohol" qn11="Drove after drinking alcohol" qn12="Carried a weapon" qn13="Carried a gun" qn14="Carried a weapon on school property" qn15="Felt too unsafe to go to school" qn16="Threatened or injured with a weapon on school property" qn17="Property stolen or damaged on school property" qn18="In a physical fight" qn19="Injured in a physical fight" qn20="Engaged in a physical fight on school property" qn21="Hit by boyfriend or girlfriend" qn22="Forced to have sexual intercourse" qn23="Felt sad and hopeless in past 12 months" qn24="Seriously considered attempting suicide" qn25="Made a suicide plan" qn26="Attempted suicide" qn27="Injured in attempted suicide" qn28="Lifetime cigarette use" qn29="Smoked cigarettes before age 13 years" qn30="Current cigarette use" qn31="Smokes 2+ cigs per day in past 30 days" qn32="Got cigarettes in a store" qn33="Cigarette use on school property" qn34="Smoked cigarettes daily ever" qn35="Of current smokers, tried to quit" qn36="Current smokeless tobacco use" qn37="Smokeless tobacco use on school property" qn38="Current cigar use" qn39="Lifetime alcohol use" qn40="Alcohol used before age 13 years" qn41="Current alcohol use" qn42="Episodic heavy drinking" qn43="Alcohol use on school property" qn44="Lifetime marijuana use" qn45="Used before age 13 years" qn46="Current marijuana use" qn47="Marijuana use on school property" qn48="Lifetime cocaine use" qn49="Current cocaine use" qn50="Lifetime inhalant use" qn51="Current inhalant use" qn52="Lifetime heroin use" qn53="Lifetime methamphetamines use" qn54="Lifetime ecstasy use" qn55="Lifeitme illegal steroid use" qn56="Lifetime injected illegal drug use" qn57="Illegal drugs offered or sold on school property" qn58="Ever had sexual intercourse" qn59="Sexual intercourse before age 13 years" qn60="Had 4 or more sexual partners during lifetime" qn61="Currently sexually active" qn62="Alcohol or drug use at last sexual intercourse" qn63="Condom use at last sexual intercourse" qn64="Birth control pill use at last sexual intercourse" qn65="Ever been or gotten someone pregnant" qn66="Thought they were overweight" qn67="Were trying to lose weight" qn68="Exercised to lose weight or to avoid gaining weight" qn69="Ate less to lose weight or to avoid gaining weight" qn70="Fasted to lose weight or to avoid gaining weight" qn71="Took diet pills to lose weight or to avoid gaining weight" qn72="Vomited or took laxatives to lose weight or to avoid gaining weight" qn73="Fruit juice 1+ times in past 7 days" qn74="Fruit 1+ times in past 7 days" qn75="Salad 1+ times in past 7 days" qn76="Potatoes 1+ times in past 7 days" qn77="Carrots 1+ times in past 7 days" qn78="Other veggie 1+ times in past 7 days" qn79="Drank 3+ glasses milk per day" qn80="Participated in sufficient vigorous activity" qn81="Participated in sufficient moderate activity" qn82="Participated in strengthening exercises" qn83="Watched TV more than 2 hours/day" qn84="Enrolled in a physical education class" qn85="Exercised 20+ minutes while in PE class" qn86="Played on at least 1 sports team" qn87="Taught abouts AIDS/HIV in school" qn88="Never or rarely wore a seatbelt when driving" qn89="Were not asked to show proof of age when buying cigarettes" qn90="Did not have a usual brand of cigarettes" qn91="Lifetime hallucinogenic drug use" qn92="Used a computer for 3+ hours per day" qn93="Injured while exercising or playing a sport" qn94="Saw a dentist within the last 12 months" qn95="Never or rarely wore sunscreen" qn96="Told by a doctor they have asthma" qn97="Had asthma attack during the past 12 months" qnfrcig="Current frequent cigarette use" qnstore="Bought cigarettes in a store" qnabstsx="Sexual abstinence among ever sex" qnrespsx="HIV indcator (abstain/condom)" qnfrvg="Ate 5+ fruits and veggies/day" qndlype="Attended a physical education class daily" qnrovwgt="At risk for overweight" qnovwgt="Overweight" qntencig="Smoked 10+ cigarettes per day" qnanytob="Current tobacco use" qnminpa="Insufficient physical activity in past 7 days" qnnopa="No physical activity in past 7 days" weight="Analysis weight" stratum="Stratum" psu="PSU" greg="Geographic Region" metrost="Metropolitan Status" ; run;