12-22-2015 09:59 AM - edited 12-22-2015 10:00 AM
Firstly, please don't type all in capitals.
Secondly, whilst I don't personally use VA, a quick look at the documentation shows that a calculated field accepts and expression. And epression is a series of operations (+/-* etc) which end in a value. It does not say anything about code constructs.
I would suggest you need to think about your data differently, or processs it further before moving into analytics (I don't know the functionality of the software, whether you could write datastep code in it).