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

setting the termination character in CLP

P: n/a
Hi,

In CLP I want to change the statement termination character from
default to ;(semi colon). I
tried update command options- but didn't work. how to do it????

regards,
Baski.

Aug 10 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Aug 10, 4:02 pm, Baski <mailtoba...@gmail.comwrote:
Hi,

In CLP I want to change the statement termination character from
default to ;(semi colon). I
tried update command options- but didn't work. how to do it????

regards,
Baski.
I found the answer, it is db2 -t. Thanks.

Aug 10 '07 #2

P: n/a
Baski wrote:
On Aug 10, 4:02 pm, Baski <mailtoba...@gmail.comwrote:
>Hi,

In CLP I want to change the statement termination character from
default to ;(semi colon). I
tried update command options- but didn't work. how to do it????

regards,
Baski.

I found the answer, it is db2 -t. Thanks.
If you need to change the option from within the CLP, e.g. to create
triggers or procedures use:
--#SET TERMINATOR <character>
e.g.
CREATE TABLE t(c1 int);

--#SET TERMINATOR %
CREATE TRIGGER trg BEFORE INSERT ON t
FOR EACH ROW
BEGIN ATOMIC
VALUES 1;
END
%
--SET TERMINATOR ;

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Aug 10 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.