******************************************************************** * NOVEMBER 16, 2004 9:30 AM * * THIS IS AN EXAMPLE OF AN SPSS PROGRAM THAT CREATES A * TEMPORARY SPSS FILE FROM THE 2003 NHIS PUBLIC USE * ASCII FILE: HOUSEHLD.DAT * * THIS IS STORED IN HOUSEHLD.SPS ******************************************************************** FILE HANDLE TEMP /NAME='C:\NHIS2003\HOUSEHLD.DAT' /RECFORM=VARIABLE /LRECL=58. DATA LIST FILE=TEMP FIXED RECORDS=1 TABLE / RECTYPE 1 - 2 SRVY_YR 3 - 6 HHX 7 - 12 (A) INTV_QRT 13 - 13 ASSIGNWK 14 - 15 INT_M_P 16 - 17 (A) INT_Y_P 18 - 21 (A) LIVQRT 22 - 23 NON_INTV 24 - 24 TELENUM 25 - 25 INSIDE 26 - 26 NOSERV 27 - 27 HOWLNGWK 28 - 29 NOWAF_HH 30 - 30 ACPT_FAM 31 - 32 REJ_FAM 33 - 34 ACPT_PER 35 - 36 REJ_PER 37 - 38 ACPTCHLD 39 - 40 LNG_INTV 41 - 41 REGION 42 - 42 WTIA_HH 43 - 48 WTFA_HH 49 - 54 STRATUM 55 - 57 PSU 58 - 58 . VARIABLE LABELS RECTYPE "Record Type" SRVY_YR "Processing Year" HHX "Household Serial Number" INTV_QRT "Interviewing Quarter" ASSIGNWK "Assignment Week" INT_M_P "Date of Interview - Month" INT_Y_P "Date of Interview - Year" LIVQRT "Type of Living Quarters" NON_INTV "Category of type A non-response" TELENUM "Telephone number" INSIDE "Working phone inside home" NOSERV "Without telephone service past 12 months" HOWLNGWK "Number of weeks w/o telephone service" NOWAF_HH "Armed Forces member in HH" ACPT_FAM "Number of families responding in HH" REJ_FAM "Number of families not responding in HH" ACPT_PER "Number of persons responding in HH" REJ_PER "Number of persons not responding in HH" ACPTCHLD "Number of children that responded in HH*" LNG_INTV "Language of interview" REGION "Region" WTIA_HH "Weight - Interim Annual" WTFA_HH "Weight - Final Annual" STRATUM "Stratum for variance estimation" PSU "PSU for variance estimation" . VALUE LABELS RECTYPE 10 "Household" / SRVY_YR 2003 "2003" / INTV_QRT 1 "Quarter 1" 2 "Quarter 2" 3 "Quarter 3" 4 "Quarter 4" / ASSIGNWK 01 "Week 1" 02 "Week 2" 03 "Week 3" 04 "Week 4" 05 "Week 5" 06 "Week 6" 07 "Week 7" 08 "Week 8" 09 "Week 9" 10 "Week 10" 11 "Week 11" 12 "Week 12" 13 "Week 13" / INT_M_P "01" "January" "02" "February" "03" "March" "04" "April" "05" "May" "06" "June" "07" "July" "08" "August" "09" "September" "10" "October" "11" "November" "12" "December" "98" "Not ascertained" / LIVQRT 01 "House, apartment, flat, condo" 02 "HU in nontransient hotel, motel" 03 "HU-permanent in transient hotel, motel" 04 "HU in rooming house" 05 "Mobile home/trailer w/no permanent rooms added" 06 "Mobile home/trailer w/1+ permanent rooms added" 07 "HU not specified above" 08 "Quarters not HU in room or board house" 09 "Unit not permanent-transient hotel, motel" 10 "Unoccupied site for mobile home/trailer/tent" 11 "Student quarters in college dormitory" 12 "Group quarter unit not specified above" 98 "Not ascertained" / NON_INTV 1 "Refused" 2 "No one home - repeated calls" 3 "Temporarily absent" 4 "Language problem" 5 "Other" / TELENUM 1 "Gave a telephone number" 2 "No telephone service" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / INSIDE 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / NOSERV 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / HOWLNGWK 00 "One week or less" 01 "More than one week, up to two weeks" 02 "More than two weeks, up to three weeks" 97 "Refused" 98 "Not ascertained" 99 "Don't know" / NOWAF_HH 1 "Armed Forces member in HH" 2 "No Armed Forces member in HH*" / LNG_INTV 1 "English" 2 "Spanish" 3 "English and Spanish" 4 "Other" 8 "Not ascertained" / REGION 1 "Northeast" 2 "Midwest" 3 "South" 4 "West" . FREQUENCIES GENERAL = RECTYPE. EXECUTE.