If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
put the sql in a file eg test.sql
execute from command line
db2 connect to xxx
db2 -tvsf test.sql > out.file
out.file will keep all results
specify -x if header and trailer are not needed
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8