Keven advised...
>Take a look at http://www.optc.com/Webbot/Thread6871.html
I believe, there is one gotcha with it... Recent versions of
QUERY seem to write a newer version number into the file, if
you use the SAVE command. That version number seems to cause
SDTODIF to fail (without any message, simply not creating the
desired output file). I suspect, SDTODIF needs to be updated,
but I have no idea, what might have changed about the QUERY
SAVE output file format. I once tweaked the version number to
the older value on an example file, and SDTODIF seemed to do
it's job as expected. However, this file did probably not have
some of the "newer" stuff that caused the version number to be
incremented.
Lars.