When using *vwrite to write out array/table parameters MAPDL automatically loops over the array. So the *vwrite does not need to be in a *do loop. Also you can *vget the node locations; no need to loop over the node count.
Mike