*options obs=100; /*------------------------------------------------ by Jean Roth Tue Jul 19 12:00:22 EDT 2005 Report errors to jroth@nber.org This program is distributed under the GNU GPL. See end of this file and http://www.gnu.org/licenses/ for details. ----------------------------------------------- */ * The following line should contain the directory where the SAS file is to be stored ; libname library "~/bulk"; * The following line should contain the complete path and name of the raw data file. On a PC, use backslashes in paths as in C:\ ; FILENAME datafile pipe "unzip -p /homes/data/cps/cpsext04.zip \\ppext04.dat "; * The following line should contain the name of the SAS dataset ; %let dataset = ppext04 ; DATA library.&dataset ; INFILE datafile LRECL = 2300 ; /*----------------------------------------------*/ options nocenter ; *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; /*---------------------------------------------- A -1 means Blank; Not in Universe; or In Universe, Met No Conditions; Sometimes, -1 is present but not described in the codebook. If the variable has a decimal, it will be resolved as -1/# of decimals These are usually 'Not in Universe' values also. The following changes in variable names have been made, if necessary: '$' to 'd'; '-' to '_'; '%' to 'p'; ($ = unedited data; - = edited data; % = allocated data) ----------------------------------------------*/ attrib precord length=3 ; attrib ph_seq length=5 ; attrib pppos length=3 ; attrib agi length=4 ; attrib cap_gain length=4 ; attrib cap_loss length=4 ; attrib dep_stat length=3 ; attrib eit_cred length=4 ; attrib emcontrb length=4 ; attrib fed_ret length=4 ; attrib fed_tax length=4 ; attrib fica length=4 ; attrib filestat length=3 ; attrib marg_tax length=3 ; attrib p_mvcaid length=5 ; attrib p_mvcare length=4 ; attrib statetax length=4 ; attrib tax_inc length=4 ; attrib martstwt length=8 ; attrib peridnum length=$22 ; INPUT @1 precord 1. @2 ph_seq 5. @7 pppos 2. @9 agi 5. @14 cap_gain 5. @19 cap_loss 4. @23 dep_stat 2. @25 eit_cred 4. @29 emcontrb 4. @33 fed_ret 5. @38 fed_tax 5. @43 fica 5. @48 filestat 1. @49 marg_tax 2. @51 p_mvcaid 5. @56 p_mvcare 5. @61 statetax 5. @66 tax_inc 5. @71 martstwt 8.2 @79 peridnum $22. ; ; proc print data=library.&dataset (obs=6); ; proc contents data=library.&dataset; run; /* Copyright 2005 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. */