473,394 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

setting the termination character in CLP

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
2 7912
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mahmood Ahmad | last post by:
Hello, I have written a program that reads three types of records, validates them acording to certain requirements and writes the valid records into a binary file. The invalid records are...
4
by: James Aguilar | last post by:
Hey all, I'm working on an encoding scheme where I am running into a problem with reading a file off a stream. Looking at the binary encoding of the file (using a simple hex editor), there is...
3
by: Madhusudan Singh | last post by:
Hi I was wondering how does one detect the above character. It is returned by an instrument I am controlling via GPIB. Thanks.
1
by: GB | last post by:
Hi, I have a structure which I want to pass as a pointer to a C dll. The problem is that C# adds '\0' character at the end of each string (which is contained in the struct). I understand that...
8
by: Henning M | last post by:
Hi, I'm trying to use stringbuilder to collect a list of strings. (as suggested by Claes Bergefall) Declare Auto Function CM_Get_Device_ID_List Lib "cfgmgr32.dll" (ByVal pszFilter As String,...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
0
by: Xh | last post by:
Hi All, I have simple question - how to change termination character in JDBC? or how to change it by issuing some kind of SQL statement? (is it possible?) thanks in advance for any help ...
3
by: Jeff | last post by:
I have had this function work perfectly in IE and am trying to get it to work in Firefox. I have seen plenty of questions and answers on the web for how to get and check the key pressed but nothing...
4
by: mjworks2009 | last post by:
Hello.. is there any by chance to set the listbox into upper case? Thanks once again.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.