The only informative output here is the first message referring to GetCaseValue, because everything after that in a consequence of that error. It is an internal error. If you can share the data your are using and the pasted syntax you ran, I can investigate (jkpeck@gmail.com). I have seen this error occasionally in the past, but I don't remember the exact cause. If you don't have the latest version of the FUZZY procedure, which is used by both PSM commands, I suggest that you update your installation via Extensions > Extension Hub. Also update the STATS PSM extension command.