I have an optional date prompt , on my cognos report. And I want to pass the value into an SQL query, but if I won't give a value I want the macro to take a default value. I am trying the following format , but it seems that it is not working
Where ypd.ACTIVATION_DATE >= TO_DATE(#prompt('DateFrom','varchar','2000/01/01')# ,'rrrr-mm-dd' )
As it seems the query does not recognize the '2000/01/01'as a default value.
Any suggestions