if you can't get map/reduce to work for you, then ...
# suitescript
b
if you can't get map/reduce to work for you, then I would try the scheduled script