411 DM 'LOG;CLEAR;OUT;CLEAR'; 412 OPTIONS THREADS=YES CPUCOUNT=7; 413 options mlogic mprint mtrace symbolgen; 414 415 data data01; 416 infile 'C:\Documents and Settings\Eric A. Suess\Desktop\Stat6250\data01.txt'; 417 input ID Location M1 M2 M3 M4 M5 M6 M7 M8; 418 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.15 seconds cpu time 14.01 seconds 419 /* Compute the mean and stdev of the measurement. */ 420 proc means data=data01 n mean std maxdec=2; 421 class location; 422 title 'Mean scores for each location'; 423 var M1 - M8; 424 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.39 seconds 425 proc sort data=data01; 426 by location; 427 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 13.56 seconds cpu time 8.95 seconds 428 proc means data=data01 n mean std maxdec=2; 429 by location; 430 title 'Mean scores for each location'; 431 var M1 - M8; 432 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 2.45 seconds cpu time 2.39 seconds 433 434 /* Create a new data set using the "output" subcommand. */ 435 436 proc means data=data01 noprint nway; 437 class location; 438 var M1 - M8; 439 output out=locationsum 440 n = n_measurement 441 mean = m_measurement 442 std = s_measurement 443 max = max_measurement 444 min = min_measurement; 445 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.21 seconds 446 447 proc print data=locationsum; 448 title 'Listing of data set locationsum'; 449 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 450 proc contents data=data01 ; 451 run; NOTE: PROCEDURE CONTENTS used (Total process time): real time 0.00 seconds cpu time 0.00 seconds