Unix Technical Forum

Newbie Question

This is a discussion on Newbie Question within the DB2 forums, part of the Database Server Software category; --> Randy wrote: > DB2 UDB 8.1.1 / Windows XP > CLP says DB2/NT 8.2.3 > My terminator is ; ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-27-2008, 07:04 AM
Knut Stolze
 
Posts: n/a
Default Re: Newbie Question

Randy wrote:

> DB2 UDB 8.1.1 / Windows XP
> CLP says DB2/NT 8.2.3
> My terminator is ; that's what it says at the bottom of the Command Editor
> windows.


Try a different statement terminator first. The thing is that the single
SQL statements inside a dynamic compound statement must always be
terminated with a ';'. So you should a different terminator for the
dynamic compound statement (DCS) itself. Otherwise, DB2 will assume at the
first ';' that the DCS is finished now, and when it parses the stuff from
the BEGIN ATOMIC ... to the INT, it finds a syntax error as at least the
closing END keyword is missing.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-27-2008, 07:05 AM
Randy
 
Posts: n/a
Default Re: Newbie Question

Works for me now. Thank you !

"Knut Stolze" <stolze@de.ibm.com> wrote in message
news:dsultq$dn4$2@lc03.rz.uni-jena.de...
> Randy wrote:
>
>> DB2 UDB 8.1.1 / Windows XP
>> CLP says DB2/NT 8.2.3
>> My terminator is ; that's what it says at the bottom of the Command
>> Editor
>> windows.

>
> Try a different statement terminator first. The thing is that the single
> SQL statements inside a dynamic compound statement must always be
> terminated with a ';'. So you should a different terminator for the
> dynamic compound statement (DCS) itself. Otherwise, DB2 will assume at
> the
> first ';' that the DCS is finished now, and when it parses the stuff from
> the BEGIN ATOMIC ... to the INT, it finds a syntax error as at least the
> closing END keyword is missing.
>
> --
> Knut Stolze
> DB2 Information Integration Development
> IBM Germany



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com