Cognos doesn't have "variables" in the same sense that they exist in programming. Cognos has "Parameters" (which are text-based placeholders for prompted values), and "Conditional Variables", which are expressions evaluated at runtime to modify the presentation of the report.
You're probably looking to use a "parameter" here. As I mentioned above, a parameter is text based, and is cast to the appropriate data type when it is put into the SQL. That creates a bit of a prolbme if you're trying to display the parameter , becuase you can't format it.
The solution to this is to create a data item in a query, and cast it to the appropriate database type. The downside is that it has to get sent to the database.
Main Topics
Browse All Topics





by: ac_davis2002Posted on 2008-06-21 at 04:51:09ID: 21837282
Thanks, I could really do with it!