Hi, I am not familiar with the iml statements. Can you post a simple example of calculating cosine similarity and output it into a new dataset? (just pairwise similarity between two variables x and y)
I initially think of this code and it doesn’t work:

data Vectors_new;
set Vectors;
CosSimCols=CosSimCols(x, y);
run;