COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: rb_bassi on 20 Mar 2008 10:26:57 AM

Title: How to write #prompt macro for Date Range Prompt
Post by: rb_bassi on 20 Mar 2008 10:26:57 AM
Hi,

I am having trouble writing an expression within a SQL Query for a Date prompt.

I am using the Date Prompt with a range - how do I reference this in my query.

For example: my value prompt macro(parameter named - ReadCode is referenced as - see below - works perfectly)....
Where Code = #prompt('ReadCode')#

is it along these lines:
to_date(#sq(prompt("Sdate","date"))#,'YYYY-MM-DD') and to_date(#sq(prompt("Edate","date"))#,'YYYY-MM-DD')??????


any ideas?