Differences Between Macro & Prompt In Cognos

Macro:

A macro is a fragment of code that you can insert in the Select statement of a query or in an expression.

A macro may contain one or more macro functions. A macro is delimited by a number sign (#) at the beginning and at the end. Everything between the number signs is treated as a macro expression and is executed at run time.

  • Is a dynamic object which returns a value when executing a query
  • A macro can be placed in any part of the SQL statement

Learn how to use Cognos, from beginner basics to advanced techniques, with online video tutorials taught by industry experts. Enroll for Free Cognos Training Demo!

Differences between macro & prompt

Macro- A macro is a set of instructions that can run applications. A macro is a dynamic object which is used to substitute the values at query run time.

Example : A macro can open your catalog,select a report(say for instance) convert that to another format and export it to any specified location,provided the code (Program)is such.

Prompt- A prompt specifies the manner in which data in the reports are to be displayed. A Prompt can be defined at the catalog level either or during report generation. Prompt is dynamic condition which select the value or enter the value at query run time  

  • A macro is a non user interactive object where as prompt is a user interactive object
  • The macro returns a single value, but a prompt can return multiple values

 MindMajix YouTube Channel

Job Support Program

Online Work Support for your on-job roles.

jobservice

Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:

  • Pay Per Hour
  • Pay Per Week
  • Monthly
Learn MoreGet Job Support
Course Schedule
NameDates
IBM Cognos TrainingNov 23 to Dec 08View Details
IBM Cognos TrainingNov 26 to Dec 11View Details
IBM Cognos TrainingNov 30 to Dec 15View Details
IBM Cognos TrainingDec 03 to Dec 18View Details
Last updated: 27 Sep 2024
About Author

Ravindra Savaram is a Technical Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.

read less