COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: bucky on 08 May 2009 08:36:00 PM

Title: add comments to expressions
Post by: bucky on 08 May 2009 08:36:00 PM
Is there a syntax to add comments to an expression? This is for documenting complex expressions to make more readable. Something similar to "--" in SQL Server.
Title: Re: add comments to expressions
Post by: david.stachon on 09 May 2009 02:24:15 AM
there is not.
Title: Re: add comments to expressions
Post by: dumbell on 10 May 2009 01:15:03 PM
#/*Here are the comments*/#

works for me.

#/* should be the enclosing once in the front and back
Title: Re: add comments to expressions
Post by: david.stachon on 10 May 2009 05:54:30 PM
whoa! ...how about that!

How did you figure that out? ...there's nothing in the RS User Guide that mentions that.

Title: Re: add comments to expressions
Post by: CognosPaul on 11 May 2009 02:13:45 AM
Adding my voice to David's. Awesome! I was also under the impression there wasn't a way to comment queries. Thanks.
Title: Re: add comments to expressions
Post by: dumbell on 11 May 2009 05:48:57 PM
"whoa! ...how about that!"

Thanks David. It means something coming from you.

It was thru my general research on web. I did not log the site id.