1 The SAS System 15:29 Friday, February 1, 2008 NOTE: Unable to open SASUSER.REGSTRY. WORK.REGSTRY will be opened instead. NOTE: All registry changes will be lost at the end of the session. WARNING: Unable to copy SASUSER registry to WORK registry. Because of this, you will not see registry customizations during this session. NOTE: Copyright (c) 2002-2003 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) 9.1 (TS1M3) Licensed to HARVARD UNIV - SCHOOL OF PUBLIC HEALTH - T&R, Site 0001177014. NOTE: This session is executing on the SunOS 5.9 platform. NOTE: SAS 9.1.3 Service Pack 3 ----------------------------------------------------------------------- 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.45 seconds cpu time 0.13 seconds 1 *options obs=100 ; 2 options nocenter ; 3 4 ** Note: I have not checked the 2005 record layout at all; 5 ** Just copied the 2004 file over; 6 7 /*------------------------------------------------ 8 by Jean Roth Wed Aug 29 12:37:04 EDT 2007 9 This program reads the 2005 NCHS Multiple Cause of Death Data Data File 10 Report errors to jroth@nber.org 11 This program is distributed under the GNU GPL. 12 See end of this file and 13 http://www.gnu.org/licenses/ for details. 14 ----------------------------------------------- */ 15 16 * The following line should contain the directory 17 where the SAS file is to be stored ; 18 2 The SAS System 15:29 Friday, February 1, 2008 19 libname library "./"; NOTE: Libref LIBRARY was successfully assigned as follows: Engine: V9 Physical Name: /disk/nber10/SCCS/mortality/2005/data 20 21 * The following line should contain 22 the complete path and name of the raw data file. 23 On a PC, use backslashes in paths as in C:\ ; 24 25 FILENAME datafile pipe "unzip -p /homes/data/mortality/2005/data/mort2005.zip "; 26 27 * The following line should contain the name of the SAS dataset ; 28 29 %let dataset=mort2005 ; 30 31 DATA &dataset ; 32 33 INFILE datafile LRECL = 20000 ; 34 attrib sex length=$1 label="Sex"; 35 36 INPUT 37 @69 sex $1. 38 ; 39 NOTE: The infile DATAFILE is: Pipe command="unzip -p /homes/data/mortality/2005/data/mort2005.zip " NOTE: 2452506 records were read from the infile DATAFILE. The minimum record length was 489. The maximum record length was 489. NOTE: The data set WORK.MORT2005 has 2452506 observations and 1 variables. NOTE: DATA statement used (Total process time): real time 56.04 seconds cpu time 46.25 seconds 40 proc freq data=&dataset.; 41 tables sex; 42 43 /* 44 Copyright 2007 shared by the National Bureau of Economic Research and Jean Roth 45 46 National Bureau of Economic Research. 47 1050 Massachusetts Avenue 48 Cambridge, MA 02138 49 jroth@nber.org 50 51 This program and all programs referenced in it are free software. You 52 can redistribute the program or modify it under the terms of the GNU 53 General Public License as published by the Free Software Foundation; 54 either version 2 of the License, or (at your option) any later version. 55 56 This program is distributed in the hope that it will be useful, 57 but WITHOUT ANY WARRANTY; without even the implied warranty of 58 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 59 GNU General Public License for more details. 60 3 The SAS System 15:29 Friday, February 1, 2008 61 You should have received a copy of the GNU General Public License 62 along with this program; if not, write to the Free Software 63 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 64 USA. 65 */ NOTE: There were 2452506 observations read from the data set WORK.MORT2005. NOTE: The PROCEDURE FREQ printed page 1. NOTE: PROCEDURE FREQ used (Total process time): real time 1.48 seconds cpu time 1.32 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 58.05 seconds cpu time 47.72 seconds