Preserve DB2 SQL comment lines

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
mleroux
Participant
Posts: 81
Joined: Wed Jul 14, 2004 3:18 am
Location: Johannesburg, South Africa
Contact:

Preserve DB2 SQL comment lines

Post by mleroux »

Is there a way to preserve the comments from a DB2 SQL script when copying the SQL to DB2 stages in DataStage? DataStage complains about the standard double-hash (--) comment lines when trying to view the data.

It works fine when the comment lines are removed, however.
Morney le Roux

There are only 10 kinds of people: Those who understand binary and those who don't.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

We leave comment lines in Oracle and it works fine. I am not sure about DB2 or other databases.
Mamu Kim
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Post by denzilsyb »

Hi morney

I fear that there is no way. (have you tried /* comments ?*/)

If that does not work, then you could do what we are currently doing to aid documentation and that is to paste the SQL into the description of the stage. this would mean you could save all the comments you could possibly need.
dnzl
"what the thinker thinks, the prover proves" - Robert Anton Wilson
mleroux
Participant
Posts: 81
Joined: Wed Jul 14, 2004 3:18 am
Location: Johannesburg, South Africa
Contact:

Post by mleroux »

Hey Denzil

I believe you're just down the road. Hope all's going well over there!

Tried //, /*, *, !, #, etc. No joy, but it's not the end of the world. Maybe it is still possible, let's wait and see.
Morney le Roux

There are only 10 kinds of people: Those who understand binary and those who don't.
Post Reply