********************************************************************* * JUNE 3, 2010 2:53 PM * * THIS IS AN EXAMPLE OF AN SPSS SCRIPT THAT CREATES * A TEMPORARY SPSS FILE FROM THE * 2009 NHIS PUBLIC USE injpoiep.DAT ASCII FILE * * THIS IS STORED IN injpoiep.SPS ********************************************************************* FILE HANDLE TEMP /NAME='C:\NHIS2009\injpoiep.dat' /RECFORM=VARIABLE /LRECL=173 DATA LIST FILE=TEMP FIXED RECORDS=1 TABLE / RECTYPE 1 - 2 SRVY_YR 3 - 6 HHX 7 - 12 (A) FMX 13 - 14 (A) FPX 15 - 16 (A) IPEPNO 17 - 18 (A) WTFA 19 - 24 IPDATEM 25 - 26 IPDATEY 27 - 30 IPDATENO 31 - 33 IPDATETP 34 - 34 IPDATEMT 35 - 35 RPCKDMR 36 - 38 RPD 39 - 41 BIETD 42 - 44 EIETD 45 - 47 EDIPBR 48 - 48 IMPMETH 49 - 49 MUMON 50 - 51 MUYEAR 52 - 55 ETFLG 56 - 56 BEIFLG 57 - 57 ICAUS 58 - 59 ECAUS 60 - 61 IJBODY1 62 - 63 IJBODY2 64 - 65 IJBODY3 66 - 67 IJBODY4 68 - 69 IJTYPE1A 70 - 71 IJTYPE1B 72 - 73 IJTYPE2A 74 - 75 IJTYPE2B 76 - 77 IJTYPE3A 78 - 79 IJTYPE3B 80 - 81 IJTYPE4A 82 - 83 IJTYPE4B 84 - 85 PPCC 86 - 86 IPEV 87 - 87 IPER 88 - 88 IPDO 89 - 89 IPPCHCP 90 - 90 IPOTH 91 - 91 IPHOSP 92 - 92 IPIHNO 93 - 94 IMTRAF 95 - 95 IMVWHO 96 - 96 IMVTYP 97 - 98 ISBELT 99 - 99 IHELMT 100 - 100 IFALL1 101 - 102 IFALL2 103 - 104 IFALLWHY 105 - 105 PPOIS 106 - 106 IPWHAT1 107 - 108 IPWHAT2 109 - 110 IPWHER1 111 - 112 IPWHER2 113 - 114 IPEMP 115 - 115 IPWKLS 116 - 116 IPSTU 117 - 117 IPSCLS 118 - 118 ICD9_1 119 - 123 (A) ICD9_2 124 - 128 (A) ICD9_3 129 - 133 (A) ICD9_4 134 - 138 (A) ICD9_5 139 - 143 (A) ICD9_6 144 - 148 (A) ICD9_7 149 - 153 (A) ICD9_8 154 - 158 (A) ECODE_1T 159 - 163 (A) ECODE_2T 164 - 168 (A) ECODE_3T 169 - 173 (A) . VARIABLE LABELS RECTYPE "File type identifier" SRVY_YR "Year of National Health Interview Survey" HHX "HH identifier" FMX "Family #" FPX "Person Number (Within family)" IPEPNO "Injury/Poisoning Episode Number" WTFA "Weight - Final Annual" IPDATEM "Month of injury/poisoning episode" IPDATEY "Year of injury/poisoning episode" IPDATENO "Approximate time since injury/poisoning episode: Number of units" IPDATETP "Approximate time since injury/poisoning episode: Time period" IPDATEMT "Approximate point in month of injury/poisoning episode" RPCKDMR "Time between the date of the injury/poisoning episode and the date the injury/poisoning questions were asked" RPD "Days between the date of the injury/poisoning episode and the date the injury/poisoning questions were asked" BIETD "Lower boundary of elapsed time interval in days" EIETD "Upper boundary of elapsed time interval in days" EDIPBR "Episode date information reported by the respondent" IMPMETH "Imputed part of I/P date or elapsed time interval" MUMON "Imputed month" MUYEAR "Imputed year" ETFLG "Elapsed time flag" BEIFLG "Elapsed time interval boundary flag" ICAUS "Cause of injury episode" ECAUS "Cause of injury/poisoning based on E codes" IJBODY1 "Parts of body hurt: 1st body part" IJBODY2 "Parts of body hurt: 2nd body part" IJBODY3 "Parts of body hurt: 3rd body part" IJBODY4 "Parts of body hurt: 4th body part" IJTYPE1A "How body part 1 was hurt: First response" IJTYPE1B "How body part 1 was hurt: Second response" IJTYPE2A "How body part 2 was hurt: First response" IJTYPE2B "How body part 2 was hurt: Second response" IJTYPE3A "How body part 3 was hurt: First response" IJTYPE3B "How body part 3 was hurt: Second response" IJTYPE4A "How body part 4 was hurt: First response" IJTYPE4B "How body part 4 was hurt: Second response" PPCC "Where received medical care: Call to PCC" IPEV "Where received medical care: Emergency vehicle" IPER "Where received medical care: Emergency room" IPDO "Where received medical care: Doctor's office/clinic" IPPCHCP "Where received medical care: Call to medical prof" IPOTH "Where received medical care: Any place else" IPHOSP "Hospitalized overnight due to injury/poisoning episode" IPIHNO "Number of nights in the hospital" IMTRAF "Traffic-related injury" IMVWHO "Injured as . . ." IMVTYP "Type of vehicle injured person was in" ISBELT "Restrained at time of accident" IHELMT "Wearing a helmet at the time of the accident" IFALL1 "How person fell: First response" IFALL2 "How person fell: Second response" IFALLWHY "Cause of fall" PPOIS "Cause of poisoning episode" IPWHAT1 "Activity at time of inj/pois episode: First response" IPWHAT2 "Activity at time of inj/pois episode: Second response" IPWHER1 "Location at time of inj/pois episode: First response" IPWHER2 "Location at time of inj/pois episode: Second response" IPEMP "Employed at the time of the injury/poisoning episode" IPWKLS "Days of work missed" IPSTU "Student at the time of the injury/poisoning episode" IPSCLS "Days of school missed" ICD9_1 "ICD-9-CM diagnosis code" ICD9_2 "ICD-9-CM diagnosis code" ICD9_3 "ICD-9-CM diagnosis code" ICD9_4 "ICD-9-CM diagnosis code" ICD9_5 "ICD-9-CM diagnosis code" ICD9_6 "ICD-9-CM diagnosis code" ICD9_7 "ICD-9-CM diagnosis code" ICD9_8 "ICD-9-CM diagnosis code" ECODE_1T "ICD-9-CM external cause code" ECODE_2T "ICD-9-CM external cause code" ECODE_3T "ICD-9-CM external cause code" . VALUE LABELS RECTYPE 10 "Household" 20 "Person" 25 "Income Imputation" 30 "Sample Adult" 40 "Sample Child" 60 "Family" 63 "Disability Questions Tests 2008/2009" 65 "Paradata" 70 "Injury/Poisoning Episode" 75 "Injury/Poisoning Verbatim" / IPEPNO "01" "First injury or poisoning" "02" "Second injury or poisoning" "03" "Third injury or poisoning" "04" "Fourth injury or poisoning" "05" "Fifth injury or poisoning" "06" "Sixth injury or poisoning" "07" "Seventh injury or poisoning" "08" "Eighth injury or poisoning" "09" "Ninth injury or poisoning" "10" "Tenth injury or poisoning" / IPDATEM 01 "January" 02 "February" 03 "March" 04 "April" 05 "May" 06 "June" 07 "July" 08 "August" 09 "September" 10 "October" 11 "November" 12 "December" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IPDATEY 9997 "Refused" 9998 "Not ascertained" 9999 "Don't know" / IPDATENO 997 "Refused" 998 "Not ascertained" 999 "Don't know" / IPDATETP 1 "Days" 2 "Weeks" 3 "Months" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPDATEMT 1 "Beginning" 2 "Middle" 3 "End" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / RPCKDMR 500 "Same month as month the injury/poisoning questions were asked" 501 "Month before the month the injury/poisoning questions were asked" 998 "Not ascertained" / EDIPBR 1 "Month, day, and year" 2 "Month, beginning of month, and year" 3 "Month, middle of month, and year" 4 "Month, end of month, and year" 5 "Month and year" 6 "Elapsed time in days" 7 "Elapsed time in weeks" 8 "Elapsed time in months" 9 "No information" / IMPMETH 0 "No imputation necessary (month, day, and year reported; or elapsed time interval width = 0)" 1 "Imputed day based on reported beginning, middle, or end of month" 2 "Imputed day of the month (no day of month information reported)" 3 "No imputation necessary (elapsed time reported in days)" 4 "Imputed time interval based on elapsed time reported in weeks" 5 "Imputed time interval based on elapsed time reported in months" 6 "Imputed elapsed time & elapsed time interval using hot deck imputation (no date information reported or no valid date information reported)" / MUMON 01 "January" 02 "February" 03 "March" 04 "April" 05 "May" 06 "June" 07 "July" 08 "August" 09 "September" 10 "October" 11 "November" 12 "December" / ETFLG 1 "Elapsed time is > 91 days" 2 "Elapsed time is <= 91 days" / BEIFLG 1 "Only the upper boundary of the interval for elapsed time is > 91 days" 2 "Upper and lower boundary of the interval for elapsed time is > 91 days" 3 "Upper and lower boundary of the interval for elapsed time is <= 91 days" / ICAUS 01 "In a motor vehicle" 02 "On a bike, scooter, skateboard, skates, skis, horse, etc" 03 "Pedestrian who was struck by a vehicle such as a car or bicycle" 04 "In a boat, train, or plane" 05 "Fall" 06 "Burned or scalded by substances such as hot objects or liquids, fire, or chemicals" 07 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / ECAUS 01 "Transportation" 02 "Fire/burn/scald related" 03 "Fall" 04 "Poisoning" 05 "Overexertion/strenuous movements" 06 "Struck by object or person" 07 "Animal or insect bite" 08 "Cut/pierce" 09 "Machinery" 10 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJBODY1 01 "Ankle" 02 "Back" 03 "Buttocks" 04 "Chest" 05 "Ear" 06 "Elbow" 07 "Eye" 08 "Face" 09 "Finger/thumb" 10 "Foot" 11 "Forearm" 12 "Groin" 13 "Hand" 14 "Head (not face)" 15 "Hip" 16 "Jaw" 17 "Knee" 18 "Lower leg" 19 "Mouth" 20 "Neck" 21 "Nose" 22 "Shoulder" 23 "Stomach" 24 "Teeth" 25 "Thigh" 26 "Toe" 27 "Upper arm" 28 "Wrist" 29 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJBODY2 00 "No second response" 01 "Ankle" 02 "Back" 03 "Buttocks" 04 "Chest" 05 "Ear" 06 "Elbow" 07 "Eye" 08 "Face" 09 "Finger/thumb" 10 "Foot" 11 "Forearm" 12 "Groin" 13 "Hand" 14 "Head (not face)" 15 "Hip" 16 "Jaw" 17 "Knee" 18 "Lower leg" 19 "Mouth" 20 "Neck" 21 "Nose" 22 "Shoulder" 23 "Stomach" 24 "Teeth" 25 "Thigh" 26 "Toe" 27 "Upper arm" 28 "Wrist" 29 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJBODY3 00 "No third response" 01 "Ankle" 02 "Back" 03 "Buttocks" 04 "Chest" 05 "Ear" 06 "Elbow" 07 "Eye" 08 "Face" 09 "Finger/thumb" 10 "Foot" 11 "Forearm" 12 "Groin" 13 "Hand" 14 "Head (not face)" 15 "Hip" 16 "Jaw" 17 "Knee" 18 "Lower leg" 19 "Mouth" 20 "Neck" 21 "Nose" 22 "Shoulder" 23 "Stomach" 24 "Teeth" 25 "Thigh" 26 "Toe" 27 "Upper arm" 28 "Wrist" 29 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJBODY4 00 "No fourth response" 01 "Ankle" 02 "Back" 03 "Buttocks" 04 "Chest" 05 "Ear" 06 "Elbow" 07 "Eye" 08 "Face" 09 "Finger/thumb" 10 "Foot" 11 "Forearm" 12 "Groin" 13 "Hand" 14 "Head (not face)" 15 "Hip" 16 "Jaw" 17 "Knee" 18 "Lower leg" 19 "Mouth" 20 "Neck" 21 "Nose" 22 "Shoulder" 23 "Stomach" 24 "Teeth" 25 "Thigh" 26 "Toe" 27 "Upper arm" 28 "Wrist" 29 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJTYPE1A 01 "Broken bone or fracture" 02 "Sprain, strain, or twist" 03 "Cut" 04 "Scrape" 05 "Bruise" 06 "Burn" 07 "Insect bite" 08 "Animal bite" 09 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJTYPE1B 00 "No second response" 01 "Broken bone or fracture" 02 "Sprain, strain, or twist" 03 "Cut" 04 "Scrape" 05 "Bruise" 06 "Burn" 07 "Insect bite" 08 "Animal bite" 09 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJTYPE2A 01 "Broken bone or fracture" 02 "Sprain, strain, or twist" 03 "Cut" 04 "Scrape" 05 "Bruise" 06 "Burn" 07 "Insect bite" 08 "Animal bite" 09 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJTYPE2B 00 "No second response" 01 "Broken bone or fracture" 02 "Sprain, strain, or twist" 03 "Cut" 04 "Scrape" 05 "Bruise" 06 "Burn" 07 "Insect bite" 08 "Animal bite" 09 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJTYPE3A 01 "Broken bone or fracture" 02 "Sprain, strain, or twist" 03 "Cut" 04 "Scrape" 05 "Bruise" 06 "Burn" 07 "Insect bite" 08 "Animal bite" 09 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJTYPE3B 00 "No second response" 01 "Broken bone or fracture" 02 "Sprain, strain, or twist" 03 "Cut" 04 "Scrape" 05 "Bruise" 06 "Burn" 07 "Insect bite" 08 "Animal bite" 09 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJTYPE4A 01 "Broken bone or fracture" 02 "Sprain, strain, or twist" 03 "Cut" 04 "Scrape" 05 "Bruise" 06 "Burn" 07 "Insect bite" 08 "Animal bite" 09 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IJTYPE4B 00 "No second response" 01 "Broken bone or fracture" 02 "Sprain, strain, or twist" 03 "Cut" 04 "Scrape" 05 "Bruise" 06 "Burn" 07 "Insect bite" 08 "Animal bite" 09 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / PPCC 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPEV 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPER 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPDO 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPPCHCP 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPOTH 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPHOSP 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPIHNO 95 "95+ nights" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IMTRAF 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IMVWHO 1 "The driver of a motor vehicle" 2 "A passenger in a motor vehicle" 3 "A pedestrian" 4 "A bicycle rider or tricycle rider" 5 "The rider of a scooter, skateboard, skates, or other non-motorized vehicle" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IMVTYP 01 "Passenger car" 02 "Passenger truck, such as a pickup truck, van, or SUV" 03 "Bus" 04 "Large commercial truck, such as a semi-truck, big rig, or 18 wheeler" 05 "Motorcycle (including mopeds and minibikes)" 06 "All terrain vehicle or ski/snow-mobile" 07 "Farm equipment (such as a tractor)" 08 "Industrial or construction vehicle" 09 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / ISBELT 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IHELMT 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IFALL1 01 "Stairs, steps, or escalator" 02 "Floor or level ground" 03 "Curb (including sidewalk)" 04 "Ladder or scaffolding" 05 "Playground equipment" 06 "Sports field, court, or rink" 07 "Building or other structure" 08 "Chair, bed, sofa, or other furniture" 09 "Bathtub, shower, toilet, or commode" 10 "Hole or other opening" 11 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IFALL2 00 "No second response" 01 "Stairs, steps, or escalator" 02 "Floor or level ground" 03 "Curb (including sidewalk)" 04 "Ladder or scaffolding" 05 "Playground equipment" 06 "Sports field, court, or rink" 07 "Building or other structure" 08 "Chair, bed, sofa, or other furniture" 09 "Bathtub, shower, toilet, or commode" 10 "Hole or other opening" 11 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IFALLWHY 1 "Slipping or tripping" 2 "Jumping or diving" 3 "Bumping into an object or another person" 4 "Being shoved or pushed by another person" 5 "Losing balance or having dizziness (becoming faint or having a seizure)" 6 "Other" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / PPOIS 1 "Swallowing a drug or medical substance mistakenly or in overdose" 2 "Swallowing or touching a harmful solid or liquid substance" 3 "Inhaling harmful gases or vapors" 4 "Eating a poisonous plant or other substance mistaken for food" 5 "Being bitten by a poisonous animal" 6 "Other, please specify" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPWHAT1 01 "Driving or riding in a motor vehicle" 02 "Working at a paid job" 03 "Working around the house or yard" 04 "Attending school" 05 "Unpaid work (such as volunteer work)" 06 "Sports and exercise" 07 "Leisure activity (excluding sports)" 08 "Sleeping, resting, eating, or drinking" 09 "Cooking" 10 "Being cared for (hands-on care from other person)" 11 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IPWHAT2 00 "No second response" 01 "Driving or riding in a motor vehicle" 02 "Working at a paid job" 03 "Working around the house or yard" 04 "Attending school" 05 "Unpaid work (such as volunteer work)" 06 "Sports and exercise" 07 "Leisure activity" 08 "Sleeping, resting, eating, or drinking" 09 "Cooking" 10 "Being cared for (hands on care from other person)" 11 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IPWHER1 01 "Home (inside)" 02 "Home (outside)" 03 "School (not residential)" 04 "Child care center or preschool" 05 "Residential institution (exclude hospital)" 06 "Health care facility (include hospital)" 07 "Street or highway" 08 "Sidewalk" 09 "Parking lot" 10 "Sport facility, athletic field, or playground" 11 "Shopping center, restaurant, store, bank, gas station, or other place of business" 12 "Farm" 13 "Park or recreation area (include bike or jog path)" 14 "River, lake, stream, or ocean" 15 "Industrial or construction area" 16 "Other public building" 17 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IPWHER2 00 "No second response" 01 "Home (inside)" 02 "Home (outside)" 03 "School (not residential)" 04 "Child care center or preschool" 05 "Residential institution (exclude hospital)" 06 "Health care facility (include hospital)" 07 "Street or highway" 08 "Sidewalk" 09 "Parking lot" 10 "Sport facility, athletic field, or playground" 11 "Shopping center, restaurant, store, bank, gas station, or other place of business" 12 "Farm" 13 "Park or recreation area (include bike or jog path)" 14 "River, lake, stream, or ocean" 15 "Industrial or construction area" 16 "Other public building" 17 "Other" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / IPEMP 1 "Full-time" 2 "Part-time" 3 "Not employed" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPWKLS 1 "None" 2 "Less than one day" 3 "One to five days" 4 "Six or more days" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPSTU 1 "Full-time" 2 "Part-time" 3 "Not a student" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / IPSCLS 1 "None" 2 "Less than one day" 3 "One to five days" 4 "Six or more days" 7 "Refused" 8 "Not ascertained" 9 "Don't know" FREQUENCIES GENERAL = RECTYPE. EXECUTE.