Solved

Cognos 8 variable

Posted on 2008-06-20
4
2,118 Views
Last Modified: 2010-04-29
Hi

Are there any cognos experts that can tell me how to create a datetime variable in Cognos 8

Thanks
0
Comment
Question by:ac_davis2002
  • 2
4 Comments
 

Author Comment

by:ac_davis2002
ID: 21837282
Thanks, I could really do with it!
0
 
LVL 12

Accepted Solution

by:
RWrigley earned 500 total points
ID: 21843233
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.
0
 

Author Comment

by:ac_davis2002
ID: 21853605
Thanks RWrigley, I have raised a question about passing report prompts to a stored procedure if you have any thoughts

Thanks again for your help
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 149
Path of Workbook 3 61
Non-recursive backtracking, using a stack 1 103
parse convert xml feed to text (python) 2 69
This is an explanation of a simple data model to help parse a JSON feed
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now