BookmarkSubscribeRSS Feed
noobs
Fluorite | Level 6

Hello EG Users,

As I understand, it is possible to accept input from user by means of Prompts in Enterprise Guide and use it as dynamic variable in queries to pull only relevant data.

Once the output is ready and charts are designed, if Analyst wants to add comments to the chart, is it doable? Is there a way to give analyst prompt so that their insights can be embedded in the final report? What I am looking for is simple text field that accepts text from analyst and embeds it in the report. In summary, final report is hybrid version of what the numbers tell the story as well as additional findings from wealth of experience that analyst has accumulated over several years?

Thank You,

Dhanashree

6 REPLIES 6
DBailey
Lapis Lazuli | Level 10

If you define a text prompt (say pComment), I believe you can associate that prompt with the code that generates the report and use it as you would a macro variable.

TITLE &pComment;

or some such thing.

noobs
Fluorite | Level 6


That sounds like what I might be looking for. Can you please specify where in SAS Enterprise Guide, I will be able to define text prompt?

In the above code, &pComment is expected to contain input that user enters, is that right?

Thanks!

DBailey
Lapis Lazuli | Level 10

If you right-click on the node and select properties, you should be able to get to the prompt manager.

Fugue
Quartz | Level 8

You could also use the ODS TEXT= statement to add notes to output.

noobs
Fluorite | Level 6

Hi Fugue,

SO in the statement above if Insight is one of my prompts, then

ODS TEXT=insight

will add notes to output. Is that correct?

ballardw
Super User

The text should be in quotes:

ODS Text='This is the text I want to appear in the output';

If you want a macro variable to resolve the quotes have to be double quotes.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 1925 views
  • 0 likes
  • 4 in conversation