Hi Rick,

Thank you so much for the wonderful post.

I encountered an error when I executed the program. After D = distance(A, X); my SAS keeps reporting "ERROR: (execution) Argument should be a scalar.". Do you know why it happens and possible solutions?

Thanks.