Thanks for the tips, I understand better the purpose of subst.
Norbert, I got confused in the manual and the description actually refers to the error code below the one I was looking for, they were bunched up together.
Sounds like there should be missing quotes, have been going over the code...