Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cognos 8 variable

Posted on 2008-06-20
4
Medium Priority
?
2,153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Simple Linear Regression

722 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