1 The SAS System 09:49 Monday, August 5, 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: USING EXPERIMENTAL LARGE FILE IMPLEMENTATION. NOTE: SAS initialization used: real time 0.230 seconds cpu time 0.059 seconds NOTE: AUTOEXEC processing completed. 1 *options obs=6; 2 *by Jean Roth, jroth@nber.org, 2002-08-02; 3 *Check if marital status and education data look good for California; 4 *OPTIONS COMPRESS='YES'; 5 %let year = 1998; %let yr = 98; %let lrecl = 284; 6 options formdlim = ' '; 7 filename piper pipe "zcat /home/data/natality/&year./data/Natl&yr..dat.Z"; 8 DATA ca&year.; 9 INFILE piper LRECL=&lrecl. recfm=f PAD END=EOF; 10 input @16 state 2. @; 11 if state=5 then do; 12 INPUT 13 @1 DATAYEAR 4. 14 @16 STATENAT 2. 15 @79 DMEDUC 2. 16 @82 DMARIMP 1. 17 @83 DMAR 1. 18 @263 FLGMEDUC 1. 19 ; 20 output; 21 end; 22 drop state; NOTE: The infile PIPER is: Pipe command="zcat /home/data/natality/1998/data/Natl98.dat.Z" NOTE: 3945192 records were read from the infile PIPER. NOTE: The data set WORK.CA1998 has 522290 observations and 6 variables. NOTE: DATA statement used: real time 1:10.940 cpu time 20.540 seconds 23 proc freq data=ca&year.; 24 tables dmeduc / missing; 25 title "&year. California Natality (STATENAT: 'State of Occurrence' = 5)"; 26 title2 "DMEDUC: 'Education of Mother Detail'"; 27 run; NOTE: The PROCEDURE FREQ printed page 1. NOTE: PROCEDURE FREQ used: real time 0.810 seconds cpu time 0.543 seconds 28 proc freq data=ca&year.; 29 tables flgmeduc / missing; 30 title "&year. California Natality (STATENAT: 'State of Occurrence' = 5)"; 31 title2 "FLGMEDUC: 'Education of Mother' reported"; 32 run; NOTE: The PROCEDURE FREQ printed page 2. NOTE: PROCEDURE FREQ used: real time 0.540 seconds cpu time 0.501 seconds 2 The SAS System 09:49 Monday, August 5, 2002 33 proc freq data=ca&year.; 34 tables dmeduc*flgmeduc / missing; 35 title "&year. California Natality (STATENAT: 'State of Occurrence' = 5)"; 36 title2 "Mother's education by reported flag"; 37 run; NOTE: The PROCEDURE FREQ printed pages 3-4. NOTE: PROCEDURE FREQ used: real time 0.880 seconds cpu time 0.815 seconds 38 proc freq data=ca&year.; 39 tables dmar / missing; 40 title2 "DMAR: 'Marital Status of Mother'"; 41 run; NOTE: The PROCEDURE FREQ printed page 5. NOTE: PROCEDURE FREQ used: real time 0.540 seconds cpu time 0.513 seconds 42 proc freq data=ca&year.; 43 tables dmarimp / missing; 44 title2 "DMARIMP: 'Marital Status of Mother Imputation Flag'"; 45 run; NOTE: The PROCEDURE FREQ printed page 6. NOTE: PROCEDURE FREQ used: real time 0.550 seconds cpu time 0.530 seconds 46 proc freq data=ca&year.; 47 tables dmar*dmarimp / missing; 48 title2 "Marital Status by Imputuation flag"; 49 run; NOTE: The PROCEDURE FREQ printed page 7. NOTE: PROCEDURE FREQ used: real time 0.830 seconds cpu time 0.778 seconds 50 proc freq data=ca&year.; 51 tables statenat / missing; 52 title2 "STATENAT: 'State of Occurrence' = 5"; 53 *proc print data=in (obs=6); 54 *proc contents data=in; NOTE: The PROCEDURE FREQ printed page 8. NOTE: PROCEDURE FREQ used: real time 0.630 seconds cpu time 0.508 seconds NOTE: The SAS System used: real time 1:15.970 cpu time 24.800 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414