SAS Component Language Dictionary |
Contains the text to display on the window's message line the
next time the window is refreshed
Category: |
System Variable
|
_MSG_ is a system variable that is created for every
SCL program you compile. The compiler creates a space for _MSG_ in the SCL
data vector.
Typically an application displays error and warning
messages on the window's message line. The text for system error and warning
messages can be obtained by using the SYSMSG or STDMSG functions. You can
also assign your own text to the _MSG_ variable. Messages are displayed
when the window is refreshed.
FRAME entries can also use the _getMsg and _setMsg methods
to query and update the _MSG_ variable.
On some operating systems, _MSG_ is not displayed if
the window has BANNER set to NONE.
Display a message if a table cannot be opened:
INIT:
dsid = open('sasuser.class');
if dsid eq 0 then
_msg_ = sysmsg();
return;
SYSMSG
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.