SAS Component Language Dictionary |
Category: | Window |
Syntax | |
Details | |
Example |
Syntax |
name=SCREENNAME(); |
Details |
The SCREENNAME function returns the name of the current window. For example, assume that there are two PROGRAM entries named SURVEY and NEWMAP in a catalog named MYLIB.TESTS. When SURVEY is executing, SCREENNAME returns MYLIB.TESTS.SURVEY.PROGRAM. When NEWMAP is executing, SCREENNAME returns MYLIB.TESTS.NEWMAP.PROGRAM.
In the FSEDIT and FSVIEW procedures, SCREENNAME returns the name of the SCREEN or FORMULA entry that the application is currently using.
Example |
Display the window name on the message line:
_msg_=screenname();
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.