1 The SAS System 11:05 Thursday, August 10, 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 ucod1991.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 33 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 0.53 seconds cpu time 0.27 seconds 1 *options obs=100 ; 2 The SAS System 11:05 Thursday, August 10, 2006 2 options nocenter ; 3 4 /*------------------------------------------------ 5 by Jean Roth Wed Aug 2 14:45:29 EDT 2006 6 This program reads the 1991 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/nber10/SCCS/mortality/1991/data 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/1991/data/Mort91.zip "; 24 25 * The following line should contain the name of the SAS dataset ; 26 27 %let dataset = ucod1991 ; 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 restatus length=3 label=""; 33 attrib sex length=3 label=""; 34 attrib ager12 length=3 label=""; 35 attrib racer3 length=3 label=""; 36 attrib ucod length=$4 label=""; 37 attrib entity1 length=$7 label=""; 38 attrib eniflag1 length=3 label=""; 39 attrib record_1 length=$5 label=""; 40 attrib rnifla_1 length=3 label=""; 41 42 INPUT 43 44 @5 restatus 1. 45 @44 sex 1. 46 @47 racer3 1. 47 @56 ager12 2. 48 @110 ucod $4. 49 @130 entity1 $7. 50 @132 eniflag1 1. 51 @273 record_1 $5. 52 @273 rnifla_1 1. 53 ; 3 The SAS System 11:05 Thursday, August 10, 2006 54 55 ** ucod does not handle 'E' codes correctly ; 56 ** record_1 does not have 'E' codes ; NOTE: The infile DATAFILE is: Pipe command="unzip -p /homes/data/mortality/1991/data/Mort91.zip " NOTE: 2173060 records were read from the infile DATAFILE. The minimum record length was 373. The maximum record length was 373. NOTE: The data set LIBRARY.UCOD1991 has 2173060 observations and 9 variables. NOTE: DATA statement used (Total process time): real time 1:48.48 cpu time 1:06.30 57 proc freq data=library.&dataset. ; WARNING: The Base Product product with which FREQ 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. 58 tables eniflag1*rnifla_1 ; 59 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. NOTE: There were 2173060 observations read from the data set LIBRARY.UCOD1991. NOTE: The PROCEDURE FREQ printed page 1. NOTE: PROCEDURE FREQ used (Total process time): real time 9.39 seconds cpu time 5.36 seconds 60 proc print data=library.&dataset. (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 more information on your warning period. 61 NOTE: There were 6 observations read from the data set LIBRARY.UCOD1991. NOTE: The PROCEDURE PRINT printed page 2. NOTE: PROCEDURE PRINT used (Total process time): real time 0.03 seconds cpu time 0.00 seconds 62 proc contents data=library.&dataset.; 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. 63 64 /* 65 Copyright 2006 shared by the National Bureau of Economic Research and Jean Roth 66 67 National Bureau of Economic Research. 68 1050 Massachusetts Avenue 69 Cambridge, MA 02138 70 jroth@nber.org 4 The SAS System 11:05 Thursday, August 10, 2006 71 72 This program and all programs referenced in it are free software. You 73 can redistribute the program or modify it under the terms of the GNU 74 General Public License as published by the Free Software Foundation; 75 either version 2 of the License, or (at your option) any later version. 76 77 This program is distributed in the hope that it will be useful, 78 but WITHOUT ANY WARRANTY; without even the implied warranty of 79 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 80 GNU General Public License for more details. 81 82 You should have received a copy of the GNU General Public License 83 along with this program; if not, write to the Free Software 84 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 85 USA. 86 */ NOTE: The PROCEDURE CONTENTS printed page 3. NOTE: PROCEDURE CONTENTS used (Total process time): real time 0.07 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 1:58.61 cpu time 1:12.00