Chapter Contents

Previous

Next
SCREENNAME

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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.