1 The SAS System 14:30 Monday, February 23, 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.33 seconds cpu time 0.12 seconds 1 *options obs=100 ; 2 options nocenter ; 3 4 /*------------------------------------------------ 5 by Jean Roth Mon Apr 17 09:05:43 EDT 2006 6 This program reads the 1984 SIPP Wave 3 Rectangular and Topical Data File 7 Report errors to jroth@nber.org 8 A value of -1 (or -1/# of implied decimals) indicates 'Not in Universe' 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/sipp/1984 18 19 * The following line should contain 20 the complete path and name of the raw data file. 2 The SAS System 14:30 Monday, February 23, 2009 21 On a PC, use backslashes in paths as in C:\ ; 22 23 FILENAME datafile pipe "zcat /homes/data/sipp/1984/sipp84rt3.dat.Z "; 24 25 * The following line should contain the name of the SAS dataset ; 26 27 %let dataset = sip84rt3 ; 28 29 DATA library.&dataset ; 30 31 INFILE datafile LRECL = 20000 ; 32 33 INPUT 34 35 @2085 age_1 2. 36 @2087 age_2 2. 37 @2089 age_3 2. 38 @2091 age_4 2. 39 @2093 age_5 2. 40 @2095 sex 1. 41 @2096 race 1. 42 ; 43 NOTE: The infile DATAFILE is: Pipe command="zcat /homes/data/sipp/1984/sipp84rt3.dat.Z " NOTE: 56197 records were read from the infile DATAFILE. The minimum record length was 5349. The maximum record length was 5946. NOTE: The data set LIBRARY.SIP84RT3 has 56197 observations and 7 variables. NOTE: DATA statement used (Total process time): real time 5.71 seconds cpu time 3.74 seconds 44 proc means data=library.sip84rt3; NOTE: There were 56197 observations read from the data set LIBRARY.SIP84RT3. NOTE: The PROCEDURE MEANS printed page 1. NOTE: PROCEDURE MEANS used (Total process time): real time 0.46 seconds cpu time 0.24 seconds 45 proc means data=library.sip84rt3; 46 where age_1>=18; NOTE: There were 39204 observations read from the data set LIBRARY.SIP84RT3. WHERE age_1>=18; NOTE: The PROCEDURE MEANS printed page 2. NOTE: PROCEDURE MEANS used (Total process time): real time 0.34 seconds cpu time 0.19 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 6.91 seconds 3 The SAS System 14:30 Monday, February 23, 2009 cpu time 4.32 seconds