/*------------------------------------------------------------------------------------*/ /*by Jean Roth Mon Jun 7 18:31:04 EDT 2004 This program reads the 1992 SIPP Wave 5 Topical Module Data File NOTE: This program is distributed under the GNU GPL. See end of this file and http://www.gnu.org/licenses/ for details. Please report errors to jroth@nber.org Six steps: (1) Uncomment the 'options compress=yes' statement if desired to save space (2) Uncomment 'LENGTH' statement if desired to save space (3) Specify output directories in 'libname' statements (4) Specify the input file name/location in the 'filename' statement (5) On a PC, use backslashes as in C:\ (6) Read in the compressed or uncompressed raw data file. See the 'filename' and 'INFILE' statements. Other changes may be user and platform specific. NOTE: A value of -1 (or -1/# of implied decimals) indicates 'Not in Universe' */ /*------------------------------------------------------------------------------------*/ *options obs=100; *options compress=yes; *Choose compress=yes to save space ; *Choose compress=no if converting to another package using transfer software ; *options pagesize=59 linesize=72; /*------------------------------------------------------------------------------------*/ libname library './'; *See the codebook for more detail; PROC FORMAT cntlout=library.fsp92t5; /* The PROC FORMAT statement will store the formats in a sas data set called fsip92t5 To use the stored formats in a subsequent program, include something like this: proc format cntlin=library.fsp92t5; PROC freq; tables pesex ; format pesex P135L.; For more information, consult the SAS Procedures Guide section of PROC FORMAT */ ; VALUE TM9620L (default=32) -1 = "DK" -3 = "None" 0 = "Not applicable" ; VALUE TM9622L (default=32) 0 = "Not applicable" 1 = "Yes" 2 = "No - skip to TM9626" ; VALUE TM9624L (default=32) -1 = "DK" 0 = "Not applicable" ; VALUE TM9626L (default=32) -3 = "None - end of interview" 0 = "Not applicable" ; VALUE TM9628L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9632L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9636L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9640L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9644L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9648L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9652L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9656L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9660L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9664L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9668L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE TM9672L (default=32) 0 = "Not marked as received" 1 = "Received" ; VALUE IMP9612L (default=32) 0 = "Not imputed" 1 = "Imputed" ; VALUE IMP9616L (default=32) 0 = "Not imputed" 1 = "Imputed" ; VALUE IMP9618L (default=32) 0 = "Not imputed" 1 = "Imputed" ; VALUE IMP9620L (default=32) 0 = "Not imputed" 1 = "Imputed" ; VALUE IMP9622L (default=32) 0 = "Not imputed" 1 = "Imputed" ; VALUE IMP9624L (default=32) 0 = "Not imputed" 1 = "Imputed" ; VALUE IMP9630L (default=32) 0 = "Not imputed" 1 = "Imputed TM9630" ; VALUE IMP9634L (default=32) 0 = "Not imputed" 1 = "Imputed TM9634" ; VALUE IMP9638L (default=32) 0 = "Not imputed" 1 = "Imputed TM9638" ; VALUE IMP9642L (default=32) 0 = "Not imputed" 1 = "Imputed TM9642" ; VALUE IMP9646L (default=32) 0 = "Not imputed" 1 = "Imputed TM9646" ; VALUE IMP9650L (default=32) 0 = "Not imputed" 1 = "Imputed TM9650" ; VALUE IMP9654L (default=32) 0 = "Not imputed" 1 = "Imputed TM9654" ; VALUE IMP9658L (default=32) 0 = "Not imputed" 1 = "Imputed TM9658" ; VALUE IMP9662L (default=32) 0 = "Not imputed" 1 = "Imputed TM9662" ; VALUE IMP9666L (default=32) 0 = "Not imputed" 1 = "Imputed TM9666" ; VALUE IMP9670L (default=32) 0 = "Not imputed" 1 = "Imputed TM9670" ; VALUE IMP9674L (default=32) 0 = "Not imputed" 1 = "Imputed TM9674" ; VALUE TMTEDFIN (default=32) 4500 = "Amount from $4100 - 4999" 5500 = "Amount from $5000 - 5999" 6500 = "Amount from $6000 - 6999" 7500 = "Amount from $7000 - 7999" 8500 = "Amount from $8000 - 8999" 9500 = "Amount from $9000 - 9999" 10500 = "Amount from $10000 - 10999" 11000 = "Amount from $11000 +" ; filename raw pipe "unzip -p /homes/data/sipp/1992/sipp92t5.zip "; data library.sip92t5; missing A; infile raw lrecl = 20000 missover ; * To read in uncompressed file, uncomment INFILE & comment filename & infile lines; * On a PC, you may need to change the direction of the slashes as in C:\; *INFILE '/homes/data/sipp/1992/sipp92t5.dat' LRECL=20000 PAD END=EOF; *LENGTH SUSEQNUM $5 ID $9 ENTRY $2 TM9620 4 TM9624 4 TM9630 4 TM9634 4 TM9638 4 TM9642 4 TM9646 4 TM9650 4 TM9654 4 TM9658 4 TM9662 4 TM9666 4 TM9670 4 TM9674 4 TMTEDFIN 4 DEFAULT=3; /*-------------------------------------------------------------------------------------*/ /* The following changes in variable names have been made, if necessary: '$' to 'd'; '-' to '_'; '%' to 'p'; Note: Variable names in SAS are not case-sensitive */ /*-------------------------------------------------------------------------------------*/ INPUT @1 SUSEQNUM $5. @6 ID $9. @30 ENTRY $2. @32 PNUM $3. @65 WAVE 1. @79 TM9620 4. @83 TM9622 1. @84 TM9624 5. @89 TM9626 2. @91 TM9628 1. @92 TM9630 4. @96 TM9632 1. @97 TM9634 5. @102 TM9636 1. @103 TM9638 4. @107 TM9640 1. @108 TM9642 4. @112 TM9644 1. @113 TM9646 4. @117 TM9648 1. @118 TM9650 4. @122 TM9652 1. @123 TM9654 5. @128 TM9656 1. @129 TM9658 4. @133 TM9660 1. @134 TM9662 5. @139 TM9664 1. @140 TM9666 5. @145 TM9668 1. @146 TM9670 4. @150 TM9672 1. @151 TM9674 5. @156 TMETCNT 2. @158 IMP9612 1. @159 IMP9616 1. @160 IMP9618 1. @161 IMP9620 1. @162 IMP9622 1. @163 IMP9624 1. @164 IMP9630 1. @165 IMP9634 1. @166 IMP9638 1. @167 IMP9642 1. @168 IMP9646 1. @169 IMP9650 1. @170 IMP9654 1. @171 IMP9658 1. @172 IMP9662 1. @173 IMP9666 1. @174 IMP9670 1. @175 IMP9674 1. @176 TMTEDFIN 5. ; LABEL SUSEQNUM = "Topical Module Microdata File (Rerelea" ID = "Sample unit identifier" ENTRY = "Edited entry address ID^M" PNUM = "Person number^M" WAVE = "Wave number within Panel^M" TM9620 = "What was the total cost of...'s" TM9622 = "Did ... live away from home while" TM9624 = "What was the total cost for room and" TM9626 = "Any type of educational assistance" TM9628 = "The GI bill?" TM9630 = "Percent received from GI bill" TM9632 = "Other veteran's educational assis-" TM9634 = "Percent received from veteran's" TM9636 = "College work study program?" TM9638 = "Percent received from college work" TM9640 = "A Pell grant?" TM9642 = "Percent received from Pell grant" TM9644 = "A Supplemental Educational" TM9646 = "Percent received from SEOG" TM9648 = "A national direct student loan?" TM9650 = "Percent received from a national" TM9652 = "A guaranteed student loan" TM9654 = "Percent received from a guaranteed" TM9656 = "A JTPA training program" TM9658 = "Percent received from JTPA" TM9660 = "Employer assistance" TM9662 = "Percent of employer assistance" TM9664 = "A fellowship or scholarship?" TM9666 = "Percent of fellowship or scholarship" TM9668 = "A tuition reduction?" TM9670 = "Percent received from tuition" TM9672 = "Anything else (other than assistance" TM9674 = "Percent of educational assistance" TMETCNT = "Number of items with data on this reco" IMP9612 = "Part C imputation flag #01" IMP9616 = "Part C imputation flag #02" IMP9618 = "Part C imputation flag #03" IMP9620 = "Part C imputation flag #04" IMP9622 = "Part C imputation flag #05" IMP9624 = "Part C imputation flag #06" IMP9630 = "Part C imputation flag #07" IMP9634 = "Part C imputation flag #08" IMP9638 = "Part C imputation flag #09" IMP9642 = "Part C imputation flag #10" IMP9646 = "Part C imputation flag #11" IMP9650 = "Part C imputation flag #12" IMP9654 = "Part C imputation flag #13" IMP9658 = "Part C imputation flag #14" IMP9662 = "Part C imputation flag #15" IMP9666 = "Part C imputation flag #16" IMP9670 = "Part C imputation flag #17" IMP9674 = "Part C imputation flag #18" TMTEDFIN = "Total amount of educational assistance" ; proc print data=library.sip92t5 (obs=6); FORMAT TM9620 TM9620L. TM9622 TM9622L. TM9624 TM9624L. TM9626 TM9626L. TM9628 TM9628L. TM9632 TM9632L. TM9636 TM9636L. TM9640 TM9640L. TM9644 TM9644L. TM9648 TM9648L. TM9652 TM9652L. TM9656 TM9656L. TM9660 TM9660L. TM9664 TM9664L. TM9668 TM9668L. TM9672 TM9672L. IMP9612 IMP9612L. IMP9616 IMP9616L. IMP9618 IMP9618L. IMP9620 IMP9620L. IMP9622 IMP9622L. IMP9624 IMP9624L. IMP9630 IMP9630L. IMP9634 IMP9634L. IMP9638 IMP9638L. IMP9642 IMP9642L. IMP9646 IMP9646L. IMP9650 IMP9650L. IMP9654 IMP9654L. IMP9658 IMP9658L. IMP9662 IMP9662L. IMP9666 IMP9666L. IMP9670 IMP9670L. IMP9674 IMP9674L. TMTEDFIN TMTEDFIN. ; proc contents data=library.sip92t5; /* Copyright 2004 shared by the National Bureau of Economic Research and Jean Roth National Bureau of Economic Research. 1050 Massachusetts Avenue Cambridge, MA 02138 jroth@nber.org This program and all programs referenced in it are free software. You can redistribute the program or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */