Solved

Cognos 8 variable

Posted on 2008-06-20
4
2,129 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi: barcode reading on android platform 1 72
BATCH to EXE Converter 2 69
learn programming 8 68
Crashing when deleting value with no child in Binary Tree 4 28
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is about my first experience with programming Arduino.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

749 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