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.
http://support.sas.com/documentation/cdl/en/vaug/65747/HTML/default/viewer.htm#p0i4r7imon277qn1fzfigcuzfxfa.htm
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).
... View more