Creates a list that documents the minimum and maximum values of specified columns.
Valid in: | SPD Server |
Interaction: | |
Note: | SPD Server WHERE clause evaluations use MINMAXVARLIST= lists to include or eliminate member tables in a server dynamic cluster table from SQL evaluation scans. |
See: | MINMAX Variable List |
server table column names. If there is more than one name, separate the names with a space.
%let host=kaboom ; %let port=5201 ; LIBNAME mylib sasspds "path3" server=&host..&port user='anonymous' ; /* Create three tables called */ /* xy1, xy2, and xy3. */ data mylib.xy1(minmaxvarlist=(x y)); do x = 1 to 10; do y = 1 to 3; output; end; end; run; data mylib.xy2(minmaxvarlist=(x y)); do x = 11 to 20; do y = 4 to 6 ; output; end; end; run; data mylib.xy3(minmaxvarlist=(x y)); do x = 21 to 30; do y = 7 to 9 ; output; end; end; run; /* Create a dynamic cluster table */ /* called cluster_table out of */ /* new tables xy1, xy2, and xy3 */ PROC SPDO library=mylib; cluster create cluster_table mem=xy1 mem=xy2 mem=xy3 quit; /* Enable WHERE evaluation to see */ /* how the SQL planner selects */ /* members from the cluster. Each */ /* member is evaluated using the */ /* min-max list. */ %let SPDSWDEB=YES; /* The first member has true rows */ PROC PRINT data=mylib.cluster_table ; where x eq 3 and y eq 3; run; /* Examine the other tables */ PROC PRINT data=mylib.cluster_table ; where x eq 3 and y eq 3 ; run; PROC PRINT data=mylib.cluster_table ; where x eq 3 and y eq 3; run; PROC PRINT data=mylib.cluster_table ; where x between 1 and 10 and y eq 3; run; PROC PRINT data=mylib.cluster_table ; where x between 11 and 30 and y eq 8 ; run; /* Delete the dynamic cluster table. */ PROC DATASETS lib=mylib nolist; delete cluster_table ; quit ;