COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: subbu_uppuluri on 25 Sep 2014 02:30:10 PM

Title: the datetime or timestamp for parameterized macro not working( no error though)
Post by: subbu_uppuluri on 25 Sep 2014 02:30:10 PM
Can anyone please help. I am trying to use the datetime or timestamp for parameterized macro in report studio query (direct query in native sql) is not working. It is not giving error at the same time when i enter datetime in the prompt page, the page freezes. But for date only is working.

Thank you for your help in advance.

Subbu.

between to_date(#sq(prompt('start','DATETIME'))#,'YYYY-MM-DD HH:MM')
                  AND to_date(#sq(prompt('end','DATETIME'))#,'YYYY-MM-DD HH:MM')
             )

OR

between to_date(#sq(prompt('start','TIMESTAMP'))#,'YYYY-MM-DD HH:MM')
                  AND to_date(#sq(prompt('end','TIMESTAMP'))#,'YYYY-MM-DD HH:MM')
             )