Block commenting in DB2 version 9.5

Hi,
How do I comment out a block of code in DB2 version 9.5?
In SQL Server I use /*  */
Any equivalent in DB2?
I'm using Command Center to create queries.
any help appreciated,
thanks
blossomparkAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

momi_sabagCommented:
exactly the same as SQL Server
-- will comment until the end of the row
/* */ creates a comment block
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sathyaram_sCommented:
In the command editor, AFAIK, you cannot use block comments.

But, you can use the same /*   */ in the SQL PL (Triggers, procedures, functions)


HTH

Sathyaram
0
Kent OlsenDBACommented:
@Blossom

It's completely dependent up the client that you're using.

The DB2 Client doesn't recognize block comments, only the double-hyphen initiated inline comment.  Other clients recognize the *C* like block comments, but they actually filter out the commented text before sending it to DB2.

Which client(s) are you using?


Kent
0
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

blossomparkAuthor Commented:
Hi Kent,
             am using Control Center from  IBM DB2 General Administration Tools
0
sathyaram_sCommented:
The control center does not recognize block comments. only "--" comment at the beginning of the line.
0
blossomparkAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 125 points for momi_sabag's comment http:/Q_27493221.html#37284761
Assisted answer: 125 points for sathyaram_s's comment http:/Q_27493221.html#37284795
Assisted answer: 125 points for Kdo's comment http:/Q_27493221.html#37285111
Assisted answer: 0 points for blossompark's comment http:/Q_27493221.html#37285136
Assisted answer: 125 points for sathyaram_s's comment http:/Q_27493221.html#37285199

for the following reason:

Hi Kdo,sathyaram s, momi sabag, thanks for all your inputs....thanks for clarifying that sathyaram s
0
blossomparkAuthor Commented:
i didn't mean to assign points to myself
0
blossomparkAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for blossompark's comment http:/Q_27493221.html#37285245
Assisted answer: 125 points for momi_sabag's comment http:/Q_27493221.html#37284761
Assisted answer: 125 points for sathyaram_s's comment http:/Q_27493221.html#37284795
Assisted answer: 125 points for Kdo's comment http:/Q_27493221.html#37285111
Assisted answer: 125 points for sathyaram_s's comment http:/Q_27493221.html#37285199

for the following reason:

I dont want to accept my own comment! how do i reverse out of this?
0
JustAModCommented:
Cancelling to adjust "Accepted Answers, by removing http:#37285245 by the author.

Thanks, '

JustAMod
CS Moderator
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB2

From novice to tech pro — start learning today.