This is a way to do it using the *msg command and puts them all in one csv file. Must be input through a file though. *msg does not work in command lines.
*get,nnode,node,0,count
*get,nmin,node,0,num,min
*do,inode,1,nnode,1
*get,xdef,node,nmin,u,x
*get,ydef,node,nmin,u,y...