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
*get,zdef,node,nmin,u,z
*if,inode,eq,1,then
/output,node_def,csv,,append
*msg,,'Node','X Deflection','Y Deflection','Z Deflection',
%C, %C, %C, %C,
/nop
*else
*endif
/output,node_def,csv,,append
*msg,,nmin,xdef,ydef,zdef,
%I, %10.5F, %10.5F, %10.5F, ! FORTRAN FORMAT
nmin=ndnext(nmin)
*enddo
/output
nnode=
nmin=
inode=
xdef=
ydef=
zdef=