perfmon in
the Search dialog box from the Start menu,
you open the Performance window.
c:\Windows\SysWOW64 that
contains the 32-bit applications. In this folder, you see the 32-bit
version of PerfMon. You can access the 32-bit versions of SAS performance
counters by launchingperfmon.exe or perfmon.msc.
|
Using Windows
|
|---|
|
options fullstimer;
/* Create a test data set with some random data. */
DATA a (drop=s);
do i = 1 to 500000;
x = ranuni(i);
y = x*2;
z = exp(x*y);
output;
end;
/* The sleep helps to delineate the subsequent */
/* sort in the Performance Monitor graph */
s = sleep(15);
run;
PROC sort data = a noduplicates;
by z y x i;
run;
/* Step 1 */
/* Create a test data set with some random data. */
/* Do this twice - once with Step 2 and once */
/* without Step 2. */
libname sample 'c:\';
DATA sample.a;
do i = 1 to 500000;
x = ranuni(i);
y = x*ranuni(i);
z = exp(y);
output;
end;
run;
/* Step 2 */
/* Create a simple index on variable x. */
/* Submit this step once. */
PROC DATASETS library = sample;
modify a;
index create x;
quit; /* Step 3 */
/* Perform a query on the data. Do this twice - */
/* once with an index and once without an index */
/* The query should select about 50% of the */
/* observations in the data set. */
PROC SQL;
create table sample.yz as
select y,z
from sample.a
where x > 0.5;
quit;
