options sastrace = ',,,sd' sastraceloc = saslog no$stsuffix fullstimer;You can use this option to determine which join algorithms are used in the query and to get timing data for the SAS job.
Keyword
|
Join Algorithm
|
---|---|
sqxsort
|
sort step
|
sqxjm
|
sort-merge join
|
sqxjndx
|
index join
|
sqxjhsh
|
hash join
|
sqxrc
|
table name
|
sqxjm sqxsort sqxsrc( WORK.JOIN_DATA2 ) sqxsort sqxsrc( LOCAL.MYDATA )In the next example, an index nested loop is used for the join:
sqxjndx sqxsrc( WORK.JOIN_DATA2 ) sqxsrc( LOCAL.MYDATA )In the final example, a hash is used for the join:
sqxjhsh sqxsrc( LOCAL.MYDATA ) sqxsrc( WORK.JOIN_DATA1 )