Dennis - I am not sure - but Vis Basic might meet your needs - although I do not know how. I assume Vis Basic can open a file to save data, and as all the usual Basic functions, will be able to append information.
The information you require is readily available - e.g. xpos = GetDro(0) - which puts the information in xpos. DRO(1) is y, DRO(2) is z, I assume 3,4,5 are a,b,c.
All you need is the syntax to open a file, record the info and close the file. Without fiddling about, I don't know how - but I'm sure someone else on the forum will.