BookmarkSubscribeRSS Feed
SASPhile
Quartz | Level 8
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.
2 REPLIES 2
DanielSantos
Barite | Level 11
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
Peter_C
Rhodochrosite | Level 12
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
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 2864 views
  • 0 likes
  • 3 in conversation