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

Pass Cognos parameter to Manual SQL -- Not working

Started by dbe, 30 Nov 2010 03:05:38 PM

Previous topic - Next topic

dbe

Hi,

Anyone can help me passing a Cognos Report Studio parameter (type string) to an SQL statement in the backend?

I found some information on this, on the www, but unfortunately, it doesn't work.

This is what I have so far:

CASE
   WHEN #promptmany('Parameter1')# IS NOT NULL
   THEN
        SELECT * FROM table WHERE field = #promptmany('Parameter1')#
   ELSE
        SELECT * FROM table
END

Our database system is Oracle, the Cognos BI version is 8.4
The error I get is 'Invalid SQL statement'

Thanks in advance