Discussion:
Append data to file using export
(too old to reply)
a***@fiserv.com
2007-10-24 21:37:56 UTC
Permalink
Hi All,

Is there any way to append to a text file using EXPORT command of DB2?

Thanks
Blair Kenneth Adamache
2007-10-25 18:59:55 UTC
Permalink
For this, don't use export - just use a select statement from the
command line processor and pipe it to a file:

C:\tmp>db2 -z out.txt select * from adamache.employee

help:

C:\tmp>db2 ? options

Option Description Default Setting
------ ---------------------------------------- ---------------
...
-z Save all output to output file OFF

Notes:
Use the DB2OPTIONS environment variable to customize option default
A minus sign (-) immediately following an option letter turns the o
Use UPDATE COMMAND OPTIONS to change option settings in interactive
file input mode.
Post by a***@fiserv.com
Hi All,
Is there any way to append to a text file using EXPORT command of DB2?
Thanks
Continue reading on narkive:
Loading...