Discussion:
SAS equivalent of VBA msgbox function?
(too old to reply)
r***@uiowa.edu
2009-08-10 22:41:40 UTC
Permalink
Is there as SAS equivalent command or function to prompt the user
during program execution?

I'd like to display a short list of items for the user to choose from
before continuing.

thanks,
rick
Terjeson, Mark
2009-08-10 22:52:55 UTC
Permalink
Hi Rick,

The WINDOW/DISPLAY and %WINDOW/%DISPLAY can do this.

http://listserv.uga.edu/cgi-bin/wa?A2=ind0309C&L=sas-l&P=R15772

http://listserv.uga.edu/cgi-bin/wa?A2=ind0901E&L=sas-l&P=R12114



Hope this is helpful.


Mark Terjeson
Investment Business Intelligence
Investment Management & Research
Russell Investments
253-439-2367


Russell
Global Leaders in Multi-Manager Investing






-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-***@LISTSERV.UGA.EDU] On Behalf Of
rick-***@uiowa.edu
Sent: Monday, August 10, 2009 3:42 PM
To: SAS-***@LISTSERV.UGA.EDU
Subject: SAS equivalent of VBA msgbox function?

Is there as SAS equivalent command or function to prompt the user
during program execution?

I'd like to display a short list of items for the user to choose from
before continuing.

thanks,
rick
Graham Murray
2009-08-11 11:00:59 UTC
Permalink
Rick,

One of our esteemed fellow SAS-lers has some good stuff on his website
which will allow you to call the MessageBox routine from within SAS if you
are running in Windows.

http://www.devenezia.com/downloads/sas/sascbtbl/ - Link to all the routines
http://www.devenezia.com/downloads/sas/sascbtbl/MessageBoxA.sas - link to
the MessageBox example

Other than that there is the messagebox() function in SAS itself if you
only want to present a message.

HTH,
Graham.
Post by r***@uiowa.edu
Is there as SAS equivalent command or function to prompt the user
during program execution?
I'd like to display a short list of items for the user to choose from
before continuing.
thanks,
rick
Richard DeVenezia
2009-08-11 15:59:01 UTC
Permalink
Post by r***@uiowa.edu
Is there as SAS equivalent command or function to prompt the user
during program execution?
I'd like to display a short list of items for the user to choose from
before continuing.
Rick:

User interfaces for choice selection and value entry can be developed
in a wide variety of ways.

Within SAS there is the
simple/text based
WINDOW/DISPLAY statements for data step environment
%WINDOW/%DISPLAY statements for macro environment
graphical
SAS/AF frames for developing detailed UIs
Datastep - JavaObj java dialogs/apps

invoking external agents that raise displays and update a state
mechanism for query upon return to SAS
state mechanism can be environment variables, text files, remote
dbs, standard output stream, etc...
local web browser
html forms/java script
flash
silverlight
gui apps/scripts
visual studio c#,basic
python/rebol/lua/etc


The UIs can be problematic if you are running code remotely
especially via enterprise guide

--
Richard A. DeVenezia
http://www.devenezia.com
Francois van der Walt
2009-08-13 03:15:27 UTC
Permalink
Within Enterprise Guide is a very easy to use interface to accomplish waht
you want.

Do not know if you use EG though.

Kind Regards
Francois (Brisbane)
Post by Richard DeVenezia
Post by r***@uiowa.edu
Is there as SAS equivalent command or function to prompt the user
during program execution?
I'd like to display a short list of items for the user to choose from
before continuing.
User interfaces for choice selection and value entry can be developed
in a wide variety of ways.
Within SAS there is the
simple/text based
WINDOW/DISPLAY statements for data step environment
%WINDOW/%DISPLAY statements for macro environment
graphical
SAS/AF frames for developing detailed UIs
Datastep - JavaObj java dialogs/apps
invoking external agents that raise displays and update a state
mechanism for query upon return to SAS
state mechanism can be environment variables, text files, remote
dbs, standard output stream, etc...
local web browser
html forms/java script
flash
silverlight
gui apps/scripts
visual studio c#,basic
python/rebol/lua/etc
The UIs can be problematic if you are running code remotely
especially via enterprise guide
--
Richard A. DeVenezia
http://www.devenezia.com
Loading...