1 The SAS System 15:52 Thursday, June 2, 2005 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.9 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 0.19 seconds cpu time 0.08 seconds 1 *options obs = 10 ; 2 options symbolgen; SYMBOLGEN: Macro variable SYSPARM resolves to 89 3 title " Extended Mare-Winship Format for 19&SYSPARM "; 4 * mwx.sas; 5 * requires year argument: sas mwx -sysparm YY 6 * Convert 1988 - 1993 March CPS to Mare-Winship format; 7 * Program by Christine Carol. 1 April 1996 ; 8 * missing: ; 9 * x62 Normal Fulltime Job ; 10 * x109 - x113 Type [A-E] income ; 11 * Missing variables all zeroes ; 12 13 libname out "../" ; NOTE: Libref OUT was successfully assigned as follows: Engine: V8 Physical Name: /disk/nber10/SCCS/mare_winship 14 options nocenter ps=79; 15 filename raw SYMBOLGEN: Macro variable SYSPARM resolves to 89 15 ! pipe "zcat /home/data/cps/cpsmar&SYSPARM..raw.Z"; SYMBOLGEN: Macro variable SYSPARM resolves to 89 16 data out.cpsmw&SYSPARM.; 17 length cr $1;cr=byte(13); 18 *infile raw lrecl=656; 19 infile raw lrecl=1024; 20 input rectype $1 @; 21 retain x1-x129 0; 22 retain x1 0; 23 retain x2 0; 24 retain x3 0; 25 retain x10 0; 26 retain year . ; 27 retain msa ; 28 retain msarank ; 29 retain pmsarank ; 30 retain cccode ; 31 ; 32 33 if rectype eq '1' then do; 34 35 x1=x1+1; x2=0; x10=0; 36 37 input 38 39 @30 x5 1. 40 @28 year 1. 41 @29 x6 1. 42 @40 x18 1. 43 @58 x19 1. 44 @278 x21 1. 45 @278 x22 1. 46 @23 x23 2. 47 @21 x24 2. 48 @39 x25 1. 49 @57 x28 1. 50 @40 x29 2. 2 The SAS System 15:52 Thursday, June 2, 2005 51 @40 x30 2. 52 @248 x31 8. 53 @287 x104 8. 54 @44 msa 4. 55 @50 msarank 3. 56 @48 pmsarank 2. 57 @285 cccode 1. 58 ; 59 end; 60 61 if rectype eq '2' then do; 62 63 x2=x2+1; x3=0; 64 x10=x10+1; 65 66 input 67 68 @7 x12 2. 69 @205 x16 8. 70 @9 x17 1. 71 @32 x92 5. 72 @37 x93 1. 73 @233 x103 8. 74 @25 x122 1. 75 @27 x123 1. 76 @29 x125 1.; 77 end; 78 79 if rectype eq '3' then do; 80 81 x3=x3+1; 82 83 input 84 85 @31 x14 1. 86 @302 x32 1. 87 @15 x33 2. 88 @420 x34 1. 89 @100 x35 1. 90 @109 x36 1. 91 @24 x37 1. 92 @103 x38 3. 93 @106 x39 3. 94 @165 x40 1. 95 @145 x41 1. 96 @32 x44 1. 97 @31 x45 1. 98 @263 x46 5. 99 @198 x47 1. 100 @149 x48 1. 101 @22 x49 2. 102 @76 x50 2. 103 @37 x51 2. 104 @34 x52 1. 105 @35 x53 2. 106 @102 x54 1. 107 @112 x55 1. 108 @167 x56 1. 109 @99 x57 1. 110 @175 x58 1. 111 @74 x59 1. 112 @17 x60 1. 113 @256 x61 6. 114 @149 x63 1. 115 @86 x64 1. 116 @39 x65 1. 117 @46 x66 2. 118 @448 x67 8. 119 @440 x68 8. 120 @26 x69 1. 121 @305 x70 5. 122 @301 x71 1. 123 @25 x72 1. 124 @85 x73 1. 125 @170 x74 1. 126 @13 x75 2. 127 @20 x76 1. 3 The SAS System 15:52 Thursday, June 2, 2005 128 @275 x78 1. 129 @21 x79 1. 130 @243 x80 6. 131 @97 x81 2. 132 @199 x83 1. 133 @176 x84 2. 134 @200 x85 1. 135 @171 x86 2. 136 @80 x88 2. 137 @96 x89 1. 138 @85 x90 1. 139 @202 x94 1. 140 @27 x95 2. 141 @190 x96 3. 142 @193 x98 3. 143 @178 x99 1. 144 @66 x107 8. 145 @50 x108 8. 146 @393 x114 5. 147 @399 x115 5. 148 @305 x116 5. 149 @297 x117 4.; 150 end; 151 if year le 8 then x4 = year + 90; else x4 = year+80; /* Dec 96 by drf */ 152 if x75 gt 9 then x75=0; /* single character output fields */ 153 if x95 eq 10 then x95=0; 154 155 file out lrecl=387; 156 if rectype eq '3' then do; output; end ; 157 NOTE: The infile RAW is: Pipe command="zcat /home/data/cps/cpsmar89.raw.Z" NOTE: The file OUT is: File Name=/disk/nber10/SCCS/mare_winship/sources/out.dat, Owner Name=jroth,Group Name=aging, Access Permission=rw-r--r-- NOTE: 275770 records were read from the infile RAW. The minimum record length was 657. The maximum record length was 657. NOTE: 0 records were written to the file OUT. NOTE: The data set OUT.CPSMW89 has 144687 observations and 136 variables. NOTE: DATA statement used: real time 2:08.34 cpu time 1:30.85 158 proc print data = out.cpsmw&sysparm. ( obs = 10 ); SYMBOLGEN: Macro variable SYSPARM resolves to 89 159 var msa: pmsa: cccode ; NOTE: There were 10 observations read from the data set OUT.CPSMW89. NOTE: The PROCEDURE PRINT printed page 1. NOTE: PROCEDURE PRINT used: real time 0.09 seconds cpu time 0.03 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 2:08.80 cpu time 1:31.01