83 DM 'LOG;CLEAR;OUT;CLEAR'; 84 OPTIONS THREADS=YES CPUCOUNT=4; 85 options mlogic mprint mtrace symbolgen; 86 87 data data01; 88 infile 'C:\Documents and Settings\Eric A. Suess\Desktop\Stat6250\data01.txt'; 89 input ID Location M1 M2 M3 M4 M5 M6 M7 M8; 90 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.19 seconds cpu time 13.93 seconds 91 /* Compute the mean and stdev of the measurement. */ 92 proc means data=data01 n mean std maxdec=2; 93 class location; 94 title 'Mean scores for each location'; 95 var M1 - M8; 96 run; NOTE: There were 3000000 observations read from the data set WORK.DATA01. NOTE: PROCEDURE MEANS used (Total process time): real time 1.92 seconds cpu time 3.70 seconds 97 proc sort data=data01; 98 by location; 99 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 11.12 seconds cpu time 8.40 seconds 100 proc means data=data01 n mean std maxdec=2; 101 by location; 102 title 'Mean scores for each location'; 103 var M1 - M8; 104 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.39 seconds 105 106 /* Create a new data set using the "output" subcommand. */ 107 108 proc means data=data01 noprint nway; 109 class location; 110 var M1 - M8; 111 output out=locationsum 112 n = n_measurement 113 mean = m_measurement 114 std = s_measurement 115 max = max_measurement 116 min = min_measurement; 117 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.64 seconds cpu time 3.18 seconds 118 119 proc print data=locationsum; 120 title 'Listing of data set locationsum'; 121 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 122 proc contents data=data01 ; 123 run; NOTE: PROCEDURE CONTENTS used (Total process time): real time 0.00 seconds cpu time 0.00 seconds