********************************************************************* * APRIL 17, 2012 1:56 PM * * THIS IS AN EXAMPLE OF AN SPSS SCRIPT THAT CREATES * A TEMPORARY SPSS FILE FROM THE * 2011 NHIS PUBLIC USE adltdisb.DAT ASCII FILE * * THIS IS STORED IN adltdisb.SPS ********************************************************************* FILE HANDLE TEMP /NAME='C:\NHIS2011\adltdisb.dat' /RECFORM=VARIABLE /LRECL=37 DATA LIST FILE=TEMP FIXED RECORDS=1 TABLE / RECTYPE 1 - 2 SRVY_YR 3 - 6 HHX 7 - 12 (A) INTV_QRT 13 - 13 INTV_MON 14 - 15 FMX 16 - 17 (A) FPX 18 - 19 (A) WTFA_ADB 20 - 25 STRAT_P 26 - 28 PSU_P 29 - 30 FDRN_FLG 31 - 31 P2DAHEAR 32 - 32 P2DASEE 33 - 33 P2DACON 34 - 34 P2DAWALK 35 - 35 P2DADRES 36 - 36 P2DAERR 37 - 37 . VARIABLE LABELS RECTYPE "File type identifier" SRVY_YR "Year of National Health Interview Survey" HHX "Household Number" INTV_QRT "Interview Quarter" INTV_MON "Interview Month" FMX "Family Number" FPX "Person Number (Within family)" WTFA_ADB "Weight - Final Annual Adult Disability Questions Test file" STRAT_P "Pseudo-stratum for public-use file variance estimation" PSU_P "Pseudo-PSU for public-use file variance estimation" FDRN_FLG "Disability Questions Test flag" P2DAHEAR "Is--deaf or have serious difficulty hearing?" P2DASEE "Is--blind or have serious difficulty seeing even when wearing glasses?" P2DACON "Does--have serious difficulty concentrating, remembering, or making decisions?" P2DAWALK "Does--have serious difficulty walking or climbing stairs?" P2DADRES "Does--have difficulty dressing or bathing?" P2DAERR "Does--have difficulty doing errands?" . VALUE LABELS RECTYPE 10 "Household" 20 "Person" 25 "Income Imputation" 30 "Sample Adult" 31 "Sample Adult Cancer" 38 "Functioning and Disability" 39 "Adult Disability Questions Test" 40 "Sample Child" 49 "Child Disability Questions Test" 60 "Family" 63 "Family Disability Questions Test" 65 "Paradata" 70 "Injury/Poisoning Episode" 75 "Injury/Poisoning Verbatim" / INTV_QRT 1 "Quarter 1" 2 "Quarter 2" 3 "Quarter 3" 4 "Quarter 4" / INTV_MON 01 "January" 02 "February" 03 "March" 04 "April" 05 "May" 06 "June" 07 "July" 08 "August" 09 "September" 10 "October" 11 "November" 12 "December" / FDRN_FLG 1 "Families selected to receive ADB (sample adults) and CDB (sample children 1-17 years) sections" 2 "Families selected to receive FDB (all persons 1 year and older) and AFD (sample adults) sections" / P2DAHEAR 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DASEE 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DACON 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DAWALK 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DADRES 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DAERR 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" FREQUENCIES GENERAL = RECTYPE. EXECUTE.