Previous Page | Next Page

SAS Component Language Dictionary

SCREENNAME



Returns the name of the current window
Category: Window

Syntax
Details
Example

Syntax

name=SCREENNAME();

name

contains the four-level name of the current window.

Type: Character


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();

Previous Page | Next Page | Top of Page