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.
Hi all,
m using db2 v8.1 ESE on windows
needed to know how we call another file(say abc.sql) from a batch file and how do we capture the output from this abc.sql file in another file.
db2 -tvf xxxx.sql > output.out
or option -o xxxx
see reference for details
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified http://www.infocura.be
i dont want to run this xxx.sql file directly from CLP but want to execute it inside another file. giving the above said command in this file throws an error saying 'an unexpected token db2 found'
from a bat file you can only call db2 commands with db2 -tvf xxx and not directly. if this has been started from db2 command window
see db2cmd in reference or previous discussion on bat files
see : dos scripits for db2
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified http://www.infocura.be