329 DM 'LOG;CLEAR;OUT;CLEAR'; 330 OPTIONS THREADS=YES CPUCOUNT=5; 331 options mlogic mprint mtrace symbolgen; 332 333 data data01; 334 infile 'C:\Documents and Settings\Eric A. Suess\Desktop\Stat6250\data01.txt'; 335 input ID Location M1 M2 M3 M4 M5 M6 M7 M8; 336 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.04 seconds cpu time 14.04 seconds 337 /* Compute the mean and stdev of the measurement. */ 338 proc means data=data01 n mean std maxdec=2; 339 class location; 340 title 'Mean scores for each location'; 341 var M1 - M8; 342 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 1.64 seconds cpu time 3.42 seconds 343 proc sort data=data01; 344 by location; 345 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.12 seconds cpu time 9.57 seconds 346 proc means data=data01 n mean std maxdec=2; 347 by location; 348 title 'Mean scores for each location'; 349 var M1 - M8; 350 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 2.49 seconds cpu time 2.39 seconds 351 352 /* Create a new data set using the "output" subcommand. */ 353 354 proc means data=data01 noprint nway; 355 class location; 356 var M1 - M8; 357 output out=locationsum 358 n = n_measurement 359 mean = m_measurement 360 std = s_measurement 361 max = max_measurement 362 min = min_measurement; 363 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.12 seconds 364 365 proc print data=locationsum; 366 title 'Listing of data set locationsum'; 367 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 368 proc contents data=data01 ; 369 run; NOTE: PROCEDURE CONTENTS used (Total process time): real time 0.00 seconds cpu time 0.00 seconds