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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2285 views
  • 0 likes
  • 3 in conversation