DATA Step, Macro, Functions and more

Pop Up error message display

Reply
Super Contributor
Posts: 673

Pop Up error message display

Hi All,
I'm uing SAS 9.1 and would like to know if a error message can be displayed as popup.Not all users know how to read log messages.If we can show an error message on the screen it will be useful.
SASPhile.
Super Contributor
Posts: 474

Re: Pop Up error message display

Not easy to do, at least from what I'm aware.

One thing that I remember, and that might do the trick, is to pre-process your script with some code that will capture the log, and the post-process with some other that will parse the log and pop a message through the %window macro.

Of course, you should make sure that the erroarabend options is not in order.

Here's some papers about the %window macro:
http://www2.sas.com/proceedings/sugi27/p192-27.pdf
http://www2.sas.com/proceedings/sugi25/25/cc/25p076.pdf
http://www2.sas.com/proceedings/sugi24/Coders/p091-24.pdf

Cheers from Portugal

Daniel Santos @ www.cgd.pt
Valued Guide
Posts: 2,177

Re: Pop Up error message display

Posted in reply to DanielSantos
another popup, built in to the old sas interface is the dm command [pre] postMessage 'your message'[/pre]
With suitable programming of the windows api you can provide a message pop-up with action buttons.

good luck
PeterC
Ask a Question
Discussion stats
  • 2 replies
  • 665 views
  • 0 likes
  • 3 in conversation