Desktop productivity for business analysts and programmers

Accept input from report analyst

Reply
Contributor
Posts: 73

Accept input from report analyst

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

Super Contributor
Posts: 578

Re: Accept input from report analyst

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.

Contributor
Posts: 73

Re: Accept input from report analyst


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!

Super Contributor
Posts: 578

Re: Accept input from report analyst

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

Super Contributor
Posts: 307

Re: Accept input from report analyst

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

Contributor
Posts: 73

Re: Accept input from report analyst

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?

Grand Advisor
Posts: 10,210

Re: Accept input from report analyst

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.

Ask a Question
Discussion stats
  • 6 replies
  • 343 views
  • 0 likes
  • 4 in conversation