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

Block comments in DB2 Command center

P: n/a
Hi ,
Could anybody tell us how to use block comments in IBM DB2 Command
Center .The version of the client that I'm using is 8.1.6 . I need to
comment multiple lines that appear consecutively in an SQL statement.

Also using /* ...... */ did not work as a block comment.
Below is the SQL we were trying...

select
col1,
/* col2,
col3 */
col4
from schm1.tabname1
where col1 = 81640 with ur

The following error was received .
SQL0104N An unexpected token "/" was found following "select col1, ".
Expected tokens may include: "<term>

Thanks.

Sep 6 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
jo********@gmail.com wrote:
Hi ,
Could anybody tell us how to use block comments in IBM DB2 Command
Center .The version of the client that I'm using is 8.1.6 . I need to
comment multiple lines that appear consecutively in an SQL statement.

Also using /* ...... */ did not work as a block comment.
Below is the SQL we were trying...

select
col1,
/* col2,
col3 */
col4
from schm1.tabname1
where col1 = 81640 with ur

The following error was received .
SQL0104N An unexpected token "/" was found following "select col1, ".
Expected tokens may include: "<term>
Some improvements have been made in the latest fixpack.
I'm not sure whether it covered command center. But it did cover CLP.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Sep 6 '06 #2

P: n/a

Serge Rielau wrote:
jo********@gmail.com wrote:
Hi ,
Could anybody tell us how to use block comments in IBM DB2 Command
Center .The version of the client that I'm using is 8.1.6 . I need to
comment multiple lines that appear consecutively in an SQL statement.

Also using /* ...... */ did not work as a block comment.
Below is the SQL we were trying...

select
col1,
/* col2,
col3 */
col4
from schm1.tabname1
where col1 = 81640 with ur

The following error was received .
SQL0104N An unexpected token "/" was found following "select col1, ".
Expected tokens may include: "<term>
Some improvements have been made in the latest fixpack.
I'm not sure whether it covered command center. But it did cover CLP.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/

you can use -- meand double hyphen to comment your line

Ritesh Kumar

Sep 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.