You might achieve the best possible performance when
using threaded Reads by specifying the
DBSLICE= data set option for Aster
nCluster
in your SAS operation. Using DBSLICE= allows connections to individual
partitions so that you can configure an Aster
nCluster
data source for each partition. Use this option to specify both the
data source and the WHERE clause for each partition.
proc print data=trilb.MYEMPS(DBSLICE=(DSN1='EMPNUM BETWEEN 1 AND 33'
DSN2='EMPNUM BETWEEN 34 AND 66'
DSN3='EMPNUM BETWEEN 67 AND 100'));
run;
Using the DATASOURCE=
option is not required to use DBSLICE= option with threaded Reads.
Using DBSLICE= works
well when the table that you want to read is not stored in multiple
partitions. It gives you flexibility in column selection. For example,
if you know that the STATE column in your employee table contains
only a few distinct values, you can customize your DBSLICE= option
accordingly.
data work.locemp;
set trlib2.MYEMP(DBSLICE=("STATE='FL'" "STATE='GA'"
"STATE='SC'" "STATE='VA'" "STATE='NC'"));
where EMPNUM<=30 and ISTENURE=0 and SALARY<=35000 and NUMCLASS>2;
run;