1 The SAS System 17:45 Friday, August 2, 2002 NOTE: Copyright (c) 1989-1996 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 6.12 TS020 Licensed to HARVARD SCHOOL OF PUBLIC HEALTH-INSTRUCTIONAL COMP, Site 0001177014. sas license has been updated, so rest easy. - Mohan NOTE: AUTOEXEC processing beginning; file is /usr/sunos/local/sas612/autoexec.sas. NOTE: SAS initialization used: real time 0.140 seconds cpu time 0.055 seconds NOTE: AUTOEXEC processing completed. 1 *options obs=6; 2 OPTIONS COMPRESS='YES'; 3 %let yr = 1991; 4 options formdlim = ' '; 5 filename piper pipe 'zcat /home/data/natality/1991/data/Natl91.dat.Z'; 6 DATA ca&yr.;; 7 INFILE piper LRECL=223 recfm=f PAD END=EOF; 8 input @9 state 2. @; 9 if state=5 then do; 10 INPUT 11 /* Source file: nata91.DAT */ 12 @1 DATAYEAR 2. 13 @9 STATENAT 2. 14 @60 DMEDUC 2. 15 @63 DMARIMP 1. 16 @64 DMAR 1. 17 @202 FLGMEDUC 1. 18 ; 19 output; 20 end; 21 drop state; NOTE: The infile PIPER is: Pipe command="zcat /home/data/natality/1991/data/Natl91.dat.Z" NOTE: 4115342 records were read from the infile PIPER. NOTE: The data set WORK.CA1991 has 610385 observations and 6 variables. NOTE: Compressing data set WORK.CA1991 decreased size by 21.98 percent. Compressed is 2818 pages; un-compressed would require 3612 pages. NOTE: DATA statement used: real time 55.140 seconds cpu time 19.062 seconds 22 proc freq data=ca&yr.; 23 tables dmeduc / missing; 24 title "&yr. California Natality (STATENAT: 'State of Occurrence' = 5)"; 25 title2 "DMEDUC: 'Education of Mother Detail'"; 26 run; NOTE: The PROCEDURE FREQ printed page 1. NOTE: PROCEDURE FREQ used: real time 1.240 seconds cpu time 1.156 seconds 27 proc freq data=ca&yr.; 28 tables flgmeduc / missing; 29 title "&yr. California Natality (STATENAT: 'State of Occurrence' = 5)"; 30 title2 "FLGMEDUC: 'Education of Mother' reported"; 31 run; NOTE: The PROCEDURE FREQ printed page 2. NOTE: PROCEDURE FREQ used: real time 1.150 seconds cpu time 1.107 seconds 2 The SAS System 17:45 Friday, August 2, 2002 32 proc freq data=ca&yr.; 33 tables dmeduc*flgmeduc / missing; 34 title "&yr. California Natality (STATENAT: 'State of Occurrence' = 5)"; 35 title2 "Mother's education by reported flag"; 36 run; NOTE: The PROCEDURE FREQ printed pages 3-4. NOTE: PROCEDURE FREQ used: real time 1.540 seconds cpu time 1.462 seconds 37 proc freq data=ca&yr.; 38 tables dmar / missing; 39 title2 "DMAR: 'Marital Status of Mother'"; 40 run; NOTE: The PROCEDURE FREQ printed page 5. NOTE: PROCEDURE FREQ used: real time 1.160 seconds cpu time 1.104 seconds 41 proc freq data=ca&yr.; 42 tables dmarimp / missing; 43 title2 "DMARIMP: 'Marital Status of Mother Imputation Flag'"; 44 run; NOTE: The PROCEDURE FREQ printed page 6. NOTE: PROCEDURE FREQ used: real time 1.180 seconds cpu time 1.145 seconds 45 proc freq data=ca&yr.; 46 tables dmar*dmarimp / missing; 47 title2 "Marital Status by Imputuation flag"; 48 run; NOTE: The PROCEDURE FREQ printed page 7. NOTE: PROCEDURE FREQ used: real time 1.490 seconds cpu time 1.413 seconds 49 proc freq data=ca&yr.; 50 tables statenat / missing; 51 title2 "STATENAT: 'State of Occurrence' = 5"; 52 *proc print data=in (obs=6); 53 *proc contents data=in; NOTE: The PROCEDURE FREQ printed page 8. NOTE: PROCEDURE FREQ used: real time 1.150 seconds cpu time 1.103 seconds NOTE: The SAS System used: real time 1:04.190 cpu time 27.620 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414