Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i export a query result in an ascii file having....

Status
Not open for further replies.

Masi

Programmer
Nov 15, 2000
30
0
0
IT
How can i export a query result in an ascii file having
fixed field size instead of using a delimiter?
I saw "output to" and "unload to" but, the first writes
also column name and column value on each raw, and the
second seems to force the use of a delimiter.

Thanks for any help!
Masi
 
In the output statement use 'without headings':

dbaccess -e ificsdc << EDS
output to temp.txt without headings
SELECT * FROM systables
EDS

regards,

Ed
Schaefer
 
It's working, thanks!
But it seems, as in your example, that when it has
to do with a lot of fields, it doesn't put them all in a raw
having one record/raw like i want it, but it decide to put one field/raw!

Thanks a lot for helping me
Masi
 
Masi:

I'm not certain what you mean. The unload command creates one record per row, pipe symobol delimited or whatever DBDELIMITER is set to.

If you want to continue this conversation offline, email me at olded@ix.netcom.com

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top