By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,466 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,466 IT Pros & Developers. It's quick & easy.

Executing multiple db2 scripts

P: 2

I would like to ask what are the command to execute multiple db2 scripts?
I try out the command below but it does not work.

db2 -tf <sql filename> & <sql filename>

I hope that someone can help me. Thanks.

With regards,
Teck Guan.
Dec 26 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 297
Hi & happy new year,

what platform are you working on? On Unix or Linux this would help:

Expand|Select|Wrap|Line Numbers
  1. cat cmd1.sql cmd2.sql | db2 -t
On window$ systems use "type" instead of "cat".

Regards, Bernd
Jan 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.