1 The SAS System 11:07 Friday, March 12, 2004 NOTE: Copyright (c) 1999-2001 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 8.2 (TS2M0) Licensed to HARVARD SCHOOL OF PUBLIC HEALTH-INSTRUCTIONAL COMP, Site 0001177014. NOTE: This session is executing on the SunOS 5.8 platform. This message is contained in the SAS news file, and is presented upon initialization. Edit the files "news" in the "misc/base" directory to display site-specific news and information in the program log. The command line option "-nonews" will prevent this display. NOTE: SAS initialization used: real time 3.30 seconds cpu time 0.07 seconds 1 2 /*------------------------------------------------------------------------------------*/ 3 /*by Jean Roth Fri Mar 12 11:06:20 EST 2004 4 This program reads the 1993 SIPP Revised Job ID Data File 5 NOTE: This program is distributed under the GNU GPL. See end of 6 this file and http://www.gnu.org/licenses/ for details. 7 Please report errors to jroth@nber.org 8 Six steps: 9 (1) Uncomment the 'options compress=yes' statement if desired to save space 10 (2) Uncomment 'LENGTH' statement if desired to save space 11 (3) Specify output directories in 'libname' statements 12 (4) Specify the input file name/location in the 'filename' statement 13 (5) On a PC, use backslashes as in C:\ 14 (6) Read in the compressed or uncompressed raw data file. See the 15 'filename' and 'INFILE' statements. 16 Other changes may be user and platform specific. 17 NOTE: A value of -1 (or -1/# of implied decimals) indicates 'Not in Universe' */ 18 /*------------------------------------------------------------------------------------*/ 19 20 options obs=100; 21 *options compress=yes; 22 *Choose compress=yes to save space ; 23 *Choose compress=no if converting to another package using transfer software ; 24 *options pagesize=59 linesize=72; 25 26 /*------------------------------------------------------------------------------------*/ 27 28 29 libname library './'; NOTE: Libref LIBRARY was successfully assigned as follows: Engine: V8 Physical Name: /homes/nber/jroth/text 30 31 *See the codebook for more detail; 32 PROC FORMAT cntlout=library.fsp93jid; 33 34 /* 35 The PROC FORMAT statement will store the formats in a sas data set called fsip93jid 36 To use the stored formats in a subsequent program, include something like this: 2 The SAS System 11:07 Friday, March 12, 2004 37 38 proc format cntlin=library.fsp93jid; 39 PROC freq; 40 tables pesex ; 41 format pesex P135L.; 42 43 For more information, consult the SAS Procedures Guide section of PROC FORMAT 44 */ 45 ; 46 VALUE FLAG_JOBID_CHAN (default=32) NOTE: The format name 'FLAG_JOBID_CHAN' exceeds 8 characters. Only the first 8 characters will be used. 47 0 = "No revisions made to this jobid in thi" /* s wave and jobid=jobid_revised */ 48 1 = "Revisions made to this jobid in this w" /* ave and jobid ~= jobid_revised */ 49 ; NOTE: Format FLAG_JOB has been output. 50 51 filename raw pipe "unzip -p /homes/data/sipp/1993/sipp93jid.zip "; 52 NOTE: The data set LIBRARY.FSP93JID has 2 observations and 21 variables. NOTE: PROCEDURE FORMAT used: real time 0.36 seconds cpu time 0.08 seconds 53 data library.sip93jid; 54 55 missing A; 56 infile raw lrecl = 20000 missover ; 57 * To read in uncompressed file, uncomment INFILE & comment filename & infile lines; 58 * On a PC, you may need to change the direction of the slashes as in C:\; 59 *INFILE '/homes/data/sipp/1993/sipp93jid.dat' LRECL=20000 PAD END=EOF; 60 61 62 63 *LENGTH 64 SUID $9 65 ENTRY $2 66 PANEL 4 67 DEFAULT=3; 68 69 70 /*-------------------------------------------------------------------------------------*/ 71 /* The following changes in variable names have been made, if necessary: 72 '$' to 'd'; '-' to '_'; '%' to 'p'; 73 74 Note: Variable names in SAS are not case-sensitive */ 75 76 /*-------------------------------------------------------------------------------------*/ 77 78 INPUT 79 80 @1 SUID $9. 81 @10 ENTRY $2. 82 @12 PNUM $3. 83 @15 PANEL 4. 84 @19 WAVE 2. 85 @21 JOBID 2. 3 The SAS System 11:07 Friday, March 12, 2004 86 @23 JOBID_REVISED 2. 87 @25 FLAG_JOBID_CHAN 1. 88 ; 89 90 LABEL 91 SUID = "Sample unit identifier" 92 ENTRY = "Edited entry address ID" 93 PNUM = "Edited person number" 94 PANEL = "Sample code - indicates panel year" 95 WAVE = "Control card item 36A - wave number" 96 JOBID = "Originally Released Employer I.D. numb" 97 JOBID_REVISED= "Edited Employer I.D. number" 98 FLAG_JOBID_CHAN= "Indicator for whether a revision was m" 99 ; 100 NOTE: The infile RAW is: Pipe command="unzip -p /homes/data/sipp/1993/sipp93jid.zip " NOTE: 100 records were read from the infile RAW. The minimum record length was 25. The maximum record length was 25. NOTE: The data set LIBRARY.SIP93JID has 100 observations and 8 variables. NOTE: DATA statement used: real time 0.44 seconds cpu time 0.03 seconds 101 proc print data=library.sip93jid (obs=6); 102 103 104 FORMAT 105 FLAG_JOBID_CHAN FLAG_JOBID_CHAN. 106 ; NOTE: There were 6 observations read from the data set LIBRARY.SIP93JID. NOTE: The PROCEDURE PRINT printed page 1. NOTE: PROCEDURE PRINT used: real time 0.17 seconds cpu time 0.02 seconds 107 proc contents data=library.sip93jid; 108 /* 109 Copyright 2004 shared by the National Bureau of Economic Research and Jean Roth 110 111 National Bureau of Economic Research. 112 1050 Massachusetts Avenue 113 Cambridge, MA 02138 114 jroth@nber.org 115 116 This program and all programs referenced in it are free software. You 117 can redistribute the program or modify it under the terms of the GNU 118 General Public License as published by the Free Software Foundation; 119 either version 2 of the License, or (at your option) any later version. 120 121 This program is distributed in the hope that it will be useful, 122 but WITHOUT ANY WARRANTY; without even the implied warranty of 4 The SAS System 11:07 Friday, March 12, 2004 123 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 124 GNU General Public License for more details. 125 126 You should have received a copy of the GNU General Public License 127 along with this program; if not, write to the Free Software 128 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 129 USA. 130 */ NOTE: The PROCEDURE CONTENTS printed page 2. NOTE: PROCEDURE CONTENTS used: real time 0.31 seconds cpu time 0.02 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 6.27 seconds cpu time 0.23 seconds