1 The SAS System 15:27 Wednesday, May 6, 2009 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.10 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.93 seconds cpu time 0.12 seconds 1 *options obs=100 ; 2 options nocenter ; 3 4 /*------------------------------------------------ 5 by Jean Roth Thu Nov 8 16:54:12 EST 2007 6 This program reads the 2002 NCHS Natality Detail Data File 7 Report errors to jroth@nber.org 8 This program is distributed under the GNU GPL. 9 See end of this file and 10 http://www.gnu.org/licenses/ for details. 11 ----------------------------------------------- */ 12 13 * The following line should contain the directory 14 where the SAS file is to be stored ; 15 16 libname library "."; NOTE: Libref LIBRARY was successfully assigned as follows: Engine: V9 Physical Name: /disk/nber10/SCCS/natality/2002/data 17 18 * The following line should contain 19 the complete path and name of the raw data file. 20 On a PC, use backslashes in paths as in C:\ ; 2 The SAS System 15:27 Wednesday, May 6, 2009 21 22 FILENAME datafile pipe "unzip -p 22 ! /homes/data/natality/ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/natality/Nat2002us.zip "; 23 24 * The following line should contain the name of the SAS dataset ; 25 26 %let dataset = library.dgestat; 27 28 DATA &dataset ; 29 30 INFILE datafile LRECL = 20000 ; 31 INPUT 32 @181 gestestm 1. 33 @182 gestimp 1. 34 @183 dgestat 2. 35 @185 gestat10 2. 36 @187 gestat3 1. 37 ; 38 NOTE: The infile DATAFILE is: Pipe command="unzip -p /homes/data/natality/ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/natality/Nat2002us.zip " NOTE: 4027376 records were read from the infile DATAFILE. The minimum record length was 351. The maximum record length was 351. NOTE: The data set LIBRARY.DGESTAT has 4027376 observations and 5 variables. NOTE: DATA statement used (Total process time): real time 1:07.94 cpu time 50.92 seconds 39 proc freq data=&dataset.; 40 tables dgestat; 41 42 *proc contents data=&dataset.; 43 44 /* 45 Copyright 2007 shared by the National Bureau of Economic Research and Jean Roth 46 47 National Bureau of Economic Research. 48 1050 Massachusetts Avenue 49 Cambridge, MA 02138 50 jroth@nber.org 51 52 This program and all programs referenced in it are free software. You 53 can redistribute the program or modify it under the terms of the GNU 54 General Public License as published by the Free Software Foundation; 55 either version 2 of the License, or (at your option) any later version. 56 57 This program is distributed in the hope that it will be useful, 58 but WITHOUT ANY WARRANTY; without even the implied warranty of 59 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 60 GNU General Public License for more details. 61 62 You should have received a copy of the GNU General Public License 63 along with this program; if not, write to the Free Software 64 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 3 The SAS System 15:27 Wednesday, May 6, 2009 65 USA. 66 */ NOTE: There were 4027376 observations read from the data set LIBRARY.DGESTAT. NOTE: The PROCEDURE FREQ printed page 1. NOTE: PROCEDURE FREQ used (Total process time): real time 20.50 seconds cpu time 2.11 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 1:29.44 cpu time 53.17 seconds