1 The SAS System 14:43 Wednesday, August 2, 2006 WARNING: The Base Product product with which Session Manager is associated will be expiring soon, and is currently in warning mode to indicate this upcoming expiration. Most typically this warning period runs for 45 days. Please run PROC SETINIT to obtain more information on your warning period. WARNING: The Base Product product with which TKSRV is associated will be expiring soon, and is currently in warning mode to indicate this upcoming expiration. Most typically this warning period runs for 45 days. Please run PROC SETINIT to obtain more information on your warning period. WARNING: The Base Product product with which DOS Monitor is associated will be expiring soon, and is currently in warning mode to indicate this upcoming expiration. Most typically this warning period runs for 45 days. Please run PROC SETINIT to obtain more information on your warning period. WARNING: The Base Product product with which Program mort1992.sas is associated will be expiring soon, and is currently in warning mode to indicate this upcoming expiration. Most typically this warning period runs for 45 days. Please run PROC SETINIT to obtain more information on your warning period. NOTE: Copyright (c) 2002-2003 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) 9.1 (TS1M3) Licensed to HARVARD SCHOOL OF PUBLIC HEALTH-INSTRUCTIONAL COMP, Site 0001177014. NOTE: This session is executing on the SunOS 5.9 platform. NOTE: SAS 9.1.3 Service Pack 3 WARNING: Your system is scheduled to expire on September 12, 2006, which is 41 days from now. Please contact your SAS Software Representative to obtain your updated SETINIT information. The SAS System will no longer function on or after that date. ----------------------------------------------------------------------- NBER NOTE: sas now defaults to sas9. sas8 or sas6 will invoke sas version 8 or 6 respectively. - 2005/10/21 ----------------------------------------------------------------------- You are running SAS 9. Some SAS 8 files will be automatically converted by the V9 engine; others are incompatible. Please see http://support.sas.com/rnd/migration/planning/platform/64bit.html PROC MIGRATE will preserve current SAS file attributes and is recommended for converting all your SAS libraries from any SAS 8 release to SAS 9. For details and examples, please see http://support.sas.com/rnd/migration/index.html This message is contained in the SAS news file, and is presented upon initialization. Edit the file "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 1.43 seconds cpu time 0.38 seconds 1 options obs=100 ; 2 The SAS System 14:43 Wednesday, August 2, 2006 2 options nocenter ; 3 4 /*------------------------------------------------ 5 by Jean Roth Wed Aug 2 14:42:55 EDT 2006 6 This program reads the 1992 NCHS Multiple Cause of Death Data Data File 7 8 Report errors to jroth@nber.org 9 This program is distributed under the GNU GPL. 10 See end of this file and 11 http://www.gnu.org/licenses/ for details. 12 ----------------------------------------------- */ 13 14 * The following line should contain the directory 15 where the SAS file is to be stored ; 16 17 libname library "./"; NOTE: Libref LIBRARY was successfully assigned as follows: Engine: V9 Physical Name: /disk/homes2b/nber/jroth/text 18 19 * The following line should contain 20 the complete path and name of the raw data file. 21 On a PC, use backslashes in paths as in C:\ ; 22 23 FILENAME datafile pipe "unzip -p /homes/data/mortality/1992/data/Mort92.zip "; 24 25 * The following line should contain the name of the SAS dataset ; 26 27 %let dataset = mort1992 ; 28 29 DATA library.&dataset ; WARNING: The Base Product product with which DATASTEP is associated will be expiring soon, and is currently in warning mode to indicate this upcoming expiration. Most typically this warning period runs for 45 days. Please run PROC SETINIT to obtain more information on your warning period. 30 31 INFILE datafile LRECL = 20000 ; 32 attrib datayear length=3 label=""; 33 attrib reparea length=3 label=""; 34 attrib rectype length=3 label=""; 35 attrib restatus length=3 label=""; 36 attrib countyoc length=$5 label=""; 37 attrib stateoc length=$2 label=""; 38 attrib region length=3 label=""; 39 attrib divstoc length=$2 label=""; 40 attrib exstatoc length=$2 label=""; 41 attrib countyrs length=$5 label=""; 42 attrib staters length=3 label=""; 43 attrib cityrs length=$5 label=""; 44 attrib popsize length=$1 label=""; 45 attrib metro length=$1 label=""; 46 attrib regnres length=3 label=""; 47 attrib divstres length=3 label=""; 48 attrib exstares length=3 label=""; 49 attrib pmsares length=$3 label=""; 50 attrib popsizoc length=3 label=""; 51 attrib popsizrs length=$1 label=""; 52 attrib popmsa length=$1 label=""; 53 attrib educ length=3 label=""; 3 The SAS System 14:43 Wednesday, August 2, 2006 54 attrib educr length=3 label=""; 55 attrib monthdth length=3 label=""; 56 attrib sex length=3 label=""; 57 attrib race length=3 label=""; 58 attrib racer3 length=3 label=""; 59 attrib racer4 length=3 label=""; 60 attrib age length=3 label=""; 61 attrib ager52 length=3 label=""; 62 attrib ager20 length=3 label=""; 63 attrib ager12 length=3 label=""; 64 attrib ager22 length=3 label=""; 65 attrib placdth length=3 label=""; 66 attrib hispanr length=3 label=""; 67 attrib marstat length=3 label=""; 68 attrib statebth length=3 label=""; 69 attrib hispanic length=3 label=""; 70 attrib hspanicr length=3 label=""; 71 attrib weekday length=3 label=""; 72 attrib autopsy length=3 label=""; 73 attrib industry length=3 label=""; 74 attrib occup length=3 label=""; 75 attrib ucr52 length=3 label=""; 76 attrib indusr51 length=3 label=""; 77 attrib indusr15 length=3 label=""; 78 attrib occupr59 length=3 label=""; 79 attrib occupr9 length=3 label=""; 80 attrib fipsctyo length=4 label=""; 81 attrib fipssto length=3 label=""; 82 attrib fipsctyr length=4 label=""; 83 attrib fipsstr length=3 label=""; 84 attrib fipspmsa length=4 label=""; 85 attrib raceimp length=3 label=""; 86 attrib ageflag length=3 label=""; 87 attrib accident length=3 label=""; 88 attrib ucod length=$4 label=""; 89 attrib ucr282 length=4 label=""; 90 attrib ucr72 length=3 label=""; 91 attrib ucr61 length=3 label=""; 92 attrib ucr34 length=3 label=""; 93 attrib eanum length=3 label=""; 94 attrib entity1 length=$7 label=""; 95 attrib econds_1 length=$2 label=""; 96 attrib econdp_1 length=3 label=""; 97 attrib enicon_1 length=$5 label=""; 98 attrib eniflag1 length=3 label=""; 99 attrib entity2 length=$7 label=""; 100 attrib econds_2 length=$2 label=""; 101 attrib econdp_2 length=3 label=""; 102 attrib enicon_2 length=$5 label=""; 103 attrib eniflag2 length=3 label=""; 104 attrib entity3 length=$7 label=""; 105 attrib econds_3 length=$2 label=""; 106 attrib econdp_3 length=3 label=""; 107 attrib enicon_3 length=$5 label=""; 108 attrib eniflag3 length=3 label=""; 109 attrib entity4 length=$7 label=""; 110 attrib econds_4 length=$2 label=""; 111 attrib econdp_4 length=3 label=""; 4 The SAS System 14:43 Wednesday, August 2, 2006 112 attrib enicon_4 length=$5 label=""; 113 attrib eniflag4 length=3 label=""; 114 attrib entity5 length=$7 label=""; 115 attrib econds_5 length=$2 label=""; 116 attrib econdp_5 length=3 label=""; 117 attrib enicon_5 length=$5 label=""; 118 attrib eniflag5 length=3 label=""; 119 attrib entity6 length=$7 label=""; 120 attrib econds_6 length=$2 label=""; 121 attrib econdp_6 length=3 label=""; 122 attrib enicon_6 length=$5 label=""; 123 attrib eniflag6 length=3 label=""; 124 attrib entity7 length=$7 label=""; 125 attrib econds_7 length=$2 label=""; 126 attrib econdp_7 length=3 label=""; 127 attrib enicon_7 length=$5 label=""; 128 attrib eniflag7 length=3 label=""; 129 attrib entity8 length=$7 label=""; 130 attrib econds_8 length=$2 label=""; 131 attrib econdp_8 length=3 label=""; 132 attrib enicon_8 length=$5 label=""; 133 attrib eniflag8 length=3 label=""; 134 attrib entity9 length=$7 label=""; 135 attrib econds_9 length=$2 label=""; 136 attrib econdp_9 length=3 label=""; 137 attrib enicon_9 length=$5 label=""; 138 attrib eniflag9 length=3 label=""; 139 attrib entity10 length=$7 label=""; 140 attrib econds_10 length=$2 label=""; 141 attrib econdp_10 length=3 label=""; 142 attrib enicon_10 length=$5 label=""; 143 attrib eniflag10 length=3 label=""; 144 attrib entity11 length=$7 label=""; 145 attrib econds_11 length=$2 label=""; 146 attrib econdp_11 length=3 label=""; 147 attrib enicon_11 length=$5 label=""; 148 attrib eniflag11 length=3 label=""; 149 attrib entity12 length=$7 label=""; 150 attrib econds_12 length=$2 label=""; 151 attrib econdp_12 length=3 label=""; 152 attrib enicon_12 length=$5 label=""; 153 attrib eniflag12 length=3 label=""; 154 attrib entity13 length=$7 label=""; 155 attrib econds_13 length=$2 label=""; 156 attrib econdp_13 length=3 label=""; 157 attrib enicon_13 length=$5 label=""; 158 attrib eniflag13 length=3 label=""; 159 attrib entity14 length=$7 label=""; 160 attrib econds_14 length=$2 label=""; 161 attrib econdp_14 length=3 label=""; 162 attrib enicon_14 length=$5 label=""; 163 attrib eniflag14 length=3 label=""; 164 attrib entity15 length=$7 label=""; 165 attrib econds_15 length=$2 label=""; 166 attrib econdp_15 length=3 label=""; 167 attrib enicon_15 length=$5 label=""; 168 attrib eniflag15 length=3 label=""; 169 attrib entity16 length=$7 label=""; 5 The SAS System 14:43 Wednesday, August 2, 2006 170 attrib econds_16 length=$2 label=""; 171 attrib econdp_16 length=3 label=""; 172 attrib enicon_16 length=$5 label=""; 173 attrib eniflag16 length=3 label=""; 174 attrib entity17 length=$7 label=""; 175 attrib econds_17 length=$2 label=""; 176 attrib econdp_17 length=3 label=""; 177 attrib enicon_17 length=$5 label=""; 178 attrib eniflag17 length=3 label=""; 179 attrib entity18 length=$7 label=""; 180 attrib econds_18 length=$2 label=""; 181 attrib econdp_18 length=3 label=""; 182 attrib enicon_18 length=$5 label=""; 183 attrib eniflag18 length=3 label=""; 184 attrib entity19 length=$7 label=""; 185 attrib econds_19 length=$2 label=""; 186 attrib econdp_19 length=3 label=""; 187 attrib enicon_19 length=$5 label=""; 188 attrib eniflag19 length=3 label=""; 189 attrib entity20 length=$7 label=""; 190 attrib econds_20 length=$2 label=""; 191 attrib econdp_20 length=3 label=""; 192 attrib enicon_20 length=$5 label=""; 193 attrib eniflag20 length=3 label=""; 194 attrib ranum length=3 label=""; 195 attrib record_1 length=$5 label=""; 196 attrib rnifla_1 length=3 label=""; 197 attrib record_2 length=$5 label=""; 198 attrib rnifla_2 length=3 label=""; 199 attrib record_3 length=$5 label=""; 200 attrib rnifla_3 length=3 label=""; 201 attrib record_4 length=$5 label=""; 202 attrib rnifla_4 length=3 label=""; 203 attrib record_5 length=$5 label=""; 204 attrib rnifla_5 length=3 label=""; 205 attrib record_6 length=$5 label=""; 206 attrib rnifla_6 length=3 label=""; 207 attrib record_7 length=$5 label=""; 208 attrib rnifla_7 length=3 label=""; 209 attrib record_8 length=$5 label=""; 210 attrib rnifla_8 length=3 label=""; 211 attrib record_9 length=$5 label=""; 212 attrib rnifla_9 length=3 label=""; 213 attrib record_10 length=$5 label=""; 214 attrib rnifla_10 length=3 label=""; 215 attrib record_11 length=$5 label=""; 216 attrib rnifla_11 length=3 label=""; 217 attrib record_12 length=$5 label=""; 218 attrib rnifla_12 length=3 label=""; 219 attrib record_13 length=$5 label=""; 220 attrib rnifla_13 length=3 label=""; 221 attrib record_14 length=$5 label=""; 222 attrib rnifla_14 length=3 label=""; 223 attrib record_15 length=$5 label=""; 224 attrib rnifla_15 length=3 label=""; 225 attrib record_16 length=$5 label=""; 226 attrib rnifla_16 length=3 label=""; 227 attrib record_17 length=$5 label=""; 6 The SAS System 14:43 Wednesday, August 2, 2006 228 attrib rnifla_17 length=3 label=""; 229 attrib record_18 length=$5 label=""; 230 attrib rnifla_18 length=3 label=""; 231 attrib record_19 length=$5 label=""; 232 attrib rnifla_19 length=3 label=""; 233 attrib record_20 length=$5 label=""; 234 attrib rnifla_20 length=3 label=""; 235 236 237 INPUT 238 239 @1 datayear 2. 240 @3 reparea 1. 241 @4 rectype 1. 242 @5 restatus 1. 243 @6 countyoc $5. 244 @6 stateoc $2. 245 @11 region 1. 246 @12 divstoc $2. 247 @14 exstatoc $2. 248 @16 countyrs $5. 249 @16 staters 2. 250 @21 cityrs $5. 251 @26 popsize $1. 252 @27 metro $1. 253 @28 regnres 1. 254 @29 divstres 2. 255 @31 exstares 2. 256 @33 pmsares $3. 257 @36 popsizoc 1. 258 @37 popsizrs $1. 259 @38 popmsa $1. 260 @39 educ 2. 261 @41 educr 1. 262 @42 monthdth 2. 263 @44 sex 1. 264 @45 race 2. 265 @47 racer3 1. 266 @48 racer4 1. 267 @49 age 3. 268 @52 ager52 2. 269 @54 ager20 2. 270 @56 ager12 2. 271 @58 ager22 2. 272 @60 placdth 1. 273 @61 hispanr 1. 274 @62 marstat 1. 275 @63 statebth 2. 276 @65 hispanic 2. 277 @67 hspanicr 1. 278 @68 weekday 1. 279 @69 autopsy 1. 280 @70 industry 3. 281 @73 occup 3. 282 @76 ucr52 3. 283 @79 indusr51 2. 284 @81 indusr15 2. 285 @83 occupr59 2. 7 The SAS System 14:43 Wednesday, August 2, 2006 286 @85 occupr9 2. 287 @87 fipsctyo 5. 288 @87 fipssto 2. 289 @92 fipsctyr 5. 290 @92 fipsstr 2. 291 @97 fipspmsa 4. 292 @101 raceimp 1. 293 @102 ageflag 1. 294 @103 accident 1. 295 @104 ucod $4. 296 @108 ucr282 5. 297 @113 ucr72 3. 298 @116 ucr61 3. 299 @119 ucr34 3. 300 @122 eanum 2. 301 @124 entity1 $7. 302 @124 econds_1 $2. 303 @124 econdp_1 1. 304 @126 enicon_1 $5. 305 @126 eniflag1 1. 306 @131 entity2 $7. 307 @131 econds_2 $2. 308 @131 econdp_2 1. 309 @133 enicon_2 $5. 310 @133 eniflag2 1. 311 @138 entity3 $7. 312 @138 econds_3 $2. 313 @138 econdp_3 1. 314 @140 enicon_3 $5. 315 @140 eniflag3 1. 316 @145 entity4 $7. 317 @145 econds_4 $2. 318 @145 econdp_4 1. 319 @147 enicon_4 $5. 320 @147 eniflag4 1. 321 @152 entity5 $7. 322 @152 econds_5 $2. 323 @152 econdp_5 1. 324 @154 enicon_5 $5. 325 @154 eniflag5 1. 326 @159 entity6 $7. 327 @159 econds_6 $2. 328 @159 econdp_6 1. 329 @161 enicon_6 $5. 330 @161 eniflag6 1. 331 @166 entity7 $7. 332 @166 econds_7 $2. 333 @166 econdp_7 1. 334 @168 enicon_7 $5. 335 @168 eniflag7 1. 336 @173 entity8 $7. 337 @173 econds_8 $2. 338 @173 econdp_8 1. 339 @175 enicon_8 $5. 340 @175 eniflag8 1. 341 @180 entity9 $7. 342 @180 econds_9 $2. 343 @180 econdp_9 1. 8 The SAS System 14:43 Wednesday, August 2, 2006 344 @182 enicon_9 $5. 345 @182 eniflag9 1. 346 @187 entity10 $7. 347 @187 econds_10 $2. 348 @187 econdp_10 1. 349 @189 enicon_10 $5. 350 @189 eniflag10 1. 351 @194 entity11 $7. 352 @194 econds_11 $2. 353 @194 econdp_11 1. 354 @196 enicon_11 $5. 355 @196 eniflag11 1. 356 @201 entity12 $7. 357 @201 econds_12 $2. 358 @201 econdp_12 1. 359 @203 enicon_12 $5. 360 @203 eniflag12 1. 361 @208 entity13 $7. 362 @208 econds_13 $2. 363 @208 econdp_13 1. 364 @210 enicon_13 $5. 365 @210 eniflag13 1. 366 @215 entity14 $7. 367 @215 econds_14 $2. 368 @215 econdp_14 1. 369 @217 enicon_14 $5. 370 @217 eniflag14 1. 371 @222 entity15 $7. 372 @222 econds_15 $2. 373 @222 econdp_15 1. 374 @224 enicon_15 $5. 375 @224 eniflag15 1. 376 @229 entity16 $7. 377 @229 econds_16 $2. 378 @229 econdp_16 1. 379 @231 enicon_16 $5. 380 @231 eniflag16 1. 381 @236 entity17 $7. 382 @236 econds_17 $2. 383 @236 econdp_17 1. 384 @238 enicon_17 $5. 385 @238 eniflag17 1. 386 @243 entity18 $7. 387 @243 econds_18 $2. 388 @243 econdp_18 1. 389 @245 enicon_18 $5. 390 @245 eniflag18 1. 391 @250 entity19 $7. 392 @250 econds_19 $2. 393 @250 econdp_19 1. 394 @252 enicon_19 $5. 395 @252 eniflag19 1. 396 @257 entity20 $7. 397 @257 econds_20 $2. 398 @257 econdp_20 1. 399 @259 enicon_20 $5. 400 @259 eniflag20 1. 401 @264 ranum 2. 9 The SAS System 14:43 Wednesday, August 2, 2006 402 @267 record_1 $5. 403 @267 rnifla_1 1. 404 @272 record_2 $5. 405 @272 rnifla_2 1. 406 @277 record_3 $5. 407 @277 rnifla_3 1. 408 @282 record_4 $5. 409 @282 rnifla_4 1. 410 @287 record_5 $5. 411 @287 rnifla_5 1. 412 @292 record_6 $5. 413 @292 rnifla_6 1. 414 @297 record_7 $5. 415 @297 rnifla_7 1. 416 @302 record_8 $5. 417 @302 rnifla_8 1. 418 @307 record_9 $5. 419 @307 rnifla_9 1. 420 @312 record_10 $5. 421 @312 rnifla_10 1. 422 @317 record_11 $5. 423 @317 rnifla_11 1. 424 @322 record_12 $5. 425 @322 rnifla_12 1. 426 @327 record_13 $5. 427 @327 rnifla_13 1. 428 @332 record_14 $5. 429 @332 rnifla_14 1. 430 @337 record_15 $5. 431 @337 rnifla_15 1. 432 @342 record_16 $5. 433 @342 rnifla_16 1. 434 @347 record_17 $5. 435 @347 rnifla_17 1. 436 @352 record_18 $5. 437 @352 rnifla_18 1. 438 @357 record_19 $5. 439 @357 rnifla_19 1. 440 @362 record_20 $5. 441 @362 rnifla_20 1. 442 ; 443 NOTE: The infile DATAFILE is: Pipe command="unzip -p /homes/data/mortality/1992/data/Mort92.zip " NOTE: 100 records were read from the infile DATAFILE. The minimum record length was 367. The maximum record length was 367. NOTE: The data set LIBRARY.MORT1992 has 100 observations and 203 variables. NOTE: DATA statement used (Total process time): real time 1.65 seconds cpu time 0.36 seconds 444 proc print data=library.mort1992 (obs=6); WARNING: The Base Product product with which PRINT is associated will be expiring soon, and is currently in warning mode to indicate this upcoming expiration. Most typically this warning period runs for 45 days. Please run PROC SETINIT to obtain 10 The SAS System 14:43 Wednesday, August 2, 2006 more information on your warning period. WARNING: The Base Product product with which SASODR is associated will be expiring soon, and is currently in warning mode to indicate this upcoming expiration. Most typically this warning period runs for 45 days. Please run PROC SETINIT to obtain more information on your warning period. 445 NOTE: There were 6 observations read from the data set LIBRARY.MORT1992. NOTE: The PROCEDURE PRINT printed pages 1-2. NOTE: PROCEDURE PRINT used (Total process time): real time 0.53 seconds cpu time 0.18 seconds 446 proc contents data=library.mort1992; WARNING: The Base Product product with which CONTENTS is associated will be expiring soon, and is currently in warning mode to indicate this upcoming expiration. Most typically this warning period runs for 45 days. Please run PROC SETINIT to obtain more information on your warning period. 447 448 /* 449 Copyright 2006 shared by the National Bureau of Economic Research and Jean Roth 450 451 National Bureau of Economic Research. 452 1050 Massachusetts Avenue 453 Cambridge, MA 02138 454 jroth@nber.org 455 456 This program and all programs referenced in it are free software. You 457 can redistribute the program or modify it under the terms of the GNU 458 General Public License as published by the Free Software Foundation; 459 either version 2 of the License, or (at your option) any later version. 460 461 This program is distributed in the hope that it will be useful, 462 but WITHOUT ANY WARRANTY; without even the implied warranty of 463 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 464 GNU General Public License for more details. 465 466 You should have received a copy of the GNU General Public License 467 along with this program; if not, write to the Free Software 468 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 469 USA. 470 */ NOTE: The PROCEDURE CONTENTS printed pages 3-7. NOTE: PROCEDURE CONTENTS used (Total process time): real time 0.37 seconds cpu time 0.09 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 4.46 seconds cpu time 1.12 seconds