Has anyone tried to put a date prompt in an Impromptu Report that is created using a Custom SQL statement? I have a complicated SQL statement that uses a string prompt, a numeric prompt and a date prompt. The string and the numeric work fine, the date does not. If I hardcode the date in the SQL (Date <={d 2002-4-11})there is no problem.
When I use the prompt the error occurs if you Verify the statement, the syntax in the WHERE is this:
Date <=?CloseBegDate?
The error is:
An unexpected token "'2002-04-16'" was found following "alendar_Date <= DATE". Expected tokens may include: "<space>". SQLSTATE=42601
Cognos seems to be inserting todays date rather than the default value set in the prompt and it doesn't seem to be constructing the WHERE clause properly.
Any help would be greatly appreciated, we are stuck...
When I use the prompt the error occurs if you Verify the statement, the syntax in the WHERE is this:
Date <=?CloseBegDate?
The error is:
An unexpected token "'2002-04-16'" was found following "alendar_Date <= DATE". Expected tokens may include: "<space>". SQLSTATE=42601
Cognos seems to be inserting todays date rather than the default value set in the prompt and it doesn't seem to be constructing the WHERE clause properly.
Any help would be greatly appreciated, we are stuck...