42 DM 'LOG;CLEAR;OUT;CLEAR'; 43 OPTIONS THREADS=YES CPUCOUNT=2; 44 options mlogic mprint mtrace symbolgen; 45 46 data data01; 47 infile 'C:\Documents and Settings\Eric A. Suess\Desktop\Stat6250\data01.txt'; 48 input ID Location M1 M2 M3 M4 M5 M6 M7 M8; 49 run; NOTE: The infile 'C:\Documents and Settings\Eric A. Suess\Desktop\Stat6250\data01.txt' is: File Name=C:\Documents and Settings\Eric A. Suess\Desktop\Stat6250\data01.txt, RECFM=V,LRECL=256 NOTE: 3000000 records were read from the infile 'C:\Documents and Settings\Eric A. Suess\Desktop\Stat6250\data01.txt'. The minimum record length was 129. The maximum record length was 157. NOTE: The data set WORK.DATA01 has 3000000 observations and 10 variables. NOTE: DATA statement used (Total process time): real time 13.80 seconds cpu time 13.86 seconds 50 /* Compute the mean and stdev of the measurement. */ 51 proc means data=data01 n mean std maxdec=2; 52 class location; 53 title 'Mean scores for each location'; 54 var M1 - M8; 55 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 2.48 seconds cpu time 3.56 seconds 56 proc sort data=data01; 57 by location; 58 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: The data set WORK.DATA01 has 3000000 observations and 10 variables. NOTE: PROCEDURE SORT used (Total process time): real time 12.05 seconds cpu time 7.45 seconds 59 proc means data=data01 n mean std maxdec=2; 60 by location; 61 title 'Mean scores for each location'; 62 var M1 - M8; 63 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 2.40 seconds cpu time 2.40 seconds 64 65 /* Create a new data set using the "output" subcommand. */ 66 67 proc means data=data01 noprint nway; 68 class location; 69 var M1 - M8; 70 output out=locationsum 71 n = n_measurement 72 mean = m_measurement 73 std = s_measurement 74 max = max_measurement 75 min = min_measurement; 76 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: The data set WORK.LOCATIONSUM has 3 observations and 8 variables. NOTE: PROCEDURE MEANS used (Total process time): real time 1.62 seconds cpu time 3.17 seconds 77 78 proc print data=locationsum; 79 title 'Listing of data set locationsum'; 80 run; NOTE: There were 3 observations read from the data set WORK.LOCATIONSUM. NOTE: PROCEDURE PRINT used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 81 proc contents data=data01 ; 82 run; NOTE: PROCEDURE CONTENTS used (Total process time): real time 0.00 seconds cpu time 0.00 seconds