you could re-write it as a map/reduce (and should)...
# suitescript
c
you could re-write it as a map/reduce (and should). Mass update is not an appropriate script for that.