.set %var $replace($did(id),$did(id),$upper($did(id)))
however that would make the whole variable in caps.