If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Functions in Cognos

Started by cogcurious, 16 Apr 2012 02:26:58 AM

Previous topic - Next topic

cogcurious

What the significance of having some funtions preceded with an underscore such as _addmonths etc...
Its said that we should use database functions instead of Cognos functions. How do you distinguish between a database function and a cognos function.
What happens if i use a function from the folder Oracle in a report thats running against DB2...Does Cognos server do some conversion?

blom0344

The opposite is true. Use Cognos functions so the UDA can compile them to the correct corresponding RDBMS function. ThAT way you can define RDBMS independant solutions with Cognos.  Defining Oracle functions will cause issues when running against DB2 (unless the function is ANSI compatible)

cogcurious

ok...Whats the difference between _addmonths and addmonths...i can't remember the exact function name for the later, but there are two that are almost the same.. except for the _ at the start...

blom0344

Cognos is AFAIK the only one to come up with underscores at the beginning of a function name, so when you use it you know you got a Cognos one.
add_months is , i believe , an Oracle function..