124 DM 'LOG;CLEAR;OUT;CLEAR'; 125 OPTIONS THREADS=YES CPUCOUNT=6; 126 options mlogic mprint mtrace symbolgen; 127 128 data data01; 129 infile 'C:\Documents and Settings\Eric A. Suess\Desktop\Stat6250\data01.txt'; 130 input ID Location M1 M2 M3 M4 M5 M6 M7 M8; 131 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.71 seconds cpu time 13.79 seconds 132 /* Compute the mean and stdev of the measurement. */ 133 proc means data=data01 n mean std maxdec=2; 134 class location; 135 title 'Mean scores for each location'; 136 var M1 - M8; 137 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 1.62 seconds cpu time 3.31 seconds 138 proc sort data=data01; 139 by location; 140 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 10.49 seconds cpu time 8.39 seconds 141 proc means data=data01 n mean std maxdec=2; 142 by location; 143 title 'Mean scores for each location'; 144 var M1 - M8; 145 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 2.38 seconds cpu time 2.39 seconds 146 147 /* Create a new data set using the "output" subcommand. */ 148 149 proc means data=data01 noprint nway; 150 class location; 151 var M1 - M8; 152 output out=locationsum 153 n = n_measurement 154 mean = m_measurement 155 std = s_measurement 156 max = max_measurement 157 min = min_measurement; 158 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.26 seconds 159 160 proc print data=locationsum; 161 title 'Listing of data set locationsum'; 162 run; NOTE: There were 3 observations read from the data set WORK.LOCATIONSUM. NOTE: PROCEDURE PRINT used (Total process time): real time 0.01 seconds cpu time 0.01 seconds 163 proc contents data=data01 ; 164 run; NOTE: PROCEDURE CONTENTS used (Total process time): real time 0.00 seconds cpu time 0.00 seconds