Valid in: | DATA and PROC steps |
Default: | DBMS specific |
Supports: | All |
data s1; a=1; y='aaaaa'; output; a=2; y='bbbbb'; output; a=5; y='ccccc'; output; run;
data a; set s1; set x.dbtab(dbindex=yes) key=a; set mydblib.dbtab(dbindex=yes) key=a; run;The key is validated against the list from the DBMS. If
a
is an index, then a pass down
occurs. Otherwise, the join takes place in SAS.
proc sql; select * from s1 aa, x.dbtab(dbindex=yes) bb where aa.a=bb.a; select * from s1 aa, mylib.dbtab(dbindex=yes) bb where aa.a=bb.a; /*or*/ select * from s1 aa, x.dbtab(dbindex=a) bb where aa.a=bb.a; select * from s1 aa, mylib.dbtab(dbindex=a) bb where aa.a=bb.a;