********************************************************************* * APRIL 14, 2016 1:41 PM * * THIS IS AN EXAMPLE OF AN SPSS SCRIPT THAT CREATES * A TEMPORARY SPSS FILE FROM THE * 2015 NHIS PUBLIC USE FMLYDISB.DAT ASCII FILE * * THIS IS STORED IN FMLYDISB.SPS ********************************************************************* FILE HANDLE TEMP /NAME='C:\NHIS2015\FMLYDISB.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_FDB 20 - 25 STRAT_P 26 - 28 PSU_P 29 - 30 FDRN_FLG 31 - 31 P2DFHEAR 32 - 32 P2DFSEE 33 - 33 P2DFCON 34 - 34 P2DFWALK 35 - 35 P2DFDRES 36 - 36 P2DFERR 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_FDB "Weight - Final Annual Family Disability Questions 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 flag" P2DFHEAR "Serious difficulty hearing" P2DFSEE "Serious difficulty seeing even when wearing glasses" P2DFCON "Serious diff making decisions bec of physical/mental /emotional cond" P2DFWALK "Serious difficulty walking or climbing stairs" P2DFDRES "Difficulty dressing or bathing" P2DFERR "Difficulty doing errands alone bec of physical/mental/emotional cond" . VALUE LABELS RECTYPE 10 "Household" 20 "Person" 25 "Income Imputation" 30 "Sample Adult" 31 "Sample Adult Cancer" 38 "Functioning and Disability" 40 "Sample Child" 60 "Family" 63 "Family Disability Questions" 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 AFD (sample adults) section" 2 "Families selected to receive FDB (all persons 1 year and older) section" / P2DFHEAR 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DFSEE 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DFCON 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DFWALK 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DFDRES 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / P2DFERR 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" FREQUENCIES GENERAL = RECTYPE. EXECUTE.