And, finally, this one solved the problem:
*GET, NoNodes, NODE, 0, COUNT !Get number of nodes
*DIM, ANODES, TABLE, NoNodes, 6 !Declare table to save coordinates and displacements
*VGET, NODELIST, NODE, ALL, NLIST
*DO, J, 1, NoNodes,1
*GET, ANODES(J,1), NODE, NODELIST(J), LOC, X
*GET...