288 DM 'LOG;CLEAR;OUT;CLEAR'; 289 OPTIONS THREADS=YES CPUCOUNT=3; 290 options mlogic mprint mtrace symbolgen; 291 292 data data01; 293 infile 'C:\Documents and Settings\Eric A. Suess\Desktop\Stat6250\data01.txt'; 294 input ID Location M1 M2 M3 M4 M5 M6 M7 M8; 295 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 14.21 seconds cpu time 14.21 seconds 296 /* Compute the mean and stdev of the measurement. */ 297 proc means data=data01 n mean std maxdec=2; 298 class location; 299 title 'Mean scores for each location'; 300 var M1 - M8; 301 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 2.03 seconds cpu time 3.29 seconds 302 proc sort data=data01; 303 by location; 304 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 14.35 seconds cpu time 8.48 seconds 305 proc means data=data01 n mean std maxdec=2; 306 by location; 307 title 'Mean scores for each location'; 308 var M1 - M8; 309 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 2.75 seconds cpu time 2.39 seconds 310 311 /* Create a new data set using the "output" subcommand. */ 312 313 proc means data=data01 noprint nway; 314 class location; 315 var M1 - M8; 316 output out=locationsum 317 n = n_measurement 318 mean = m_measurement 319 std = s_measurement 320 max = max_measurement 321 min = min_measurement; 322 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 3.06 seconds cpu time 3.10 seconds 323 324 proc print data=locationsum; 325 title 'Listing of data set locationsum'; 326 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 327 proc contents data=data01 ; 328 run; NOTE: PROCEDURE CONTENTS used (Total process time): real time 0.34 seconds cpu time 0.01 seconds