SAS Component Language Dictionary |
Returns the SAS table name that is associated with a table identifier
table-name=DSNAME(<table-id>);
|
-
table-name
-
contains either the table name that is associated
with the specified table-id value, or a blank
if an invalid value is specified.
Type: Character
-
table-id
-
contains the identifier that was assigned
when the table was opened. If DSNAME is called from FSEDIT, FSBROWSE, or FSVIEW,
this value is optional. If table-id is not specified
in an FSEDIT or FSVIEW application, then DSNAME returns the name of the current
table. If table-id is not specified in a SAS/AF
application, then DSNAME returns a blank.
Type: Character
-
Determine the name of the SAS table that is associated
with the table identifier TABLEID and display this name on the message line:
_msg_='The open table is '||dsname(tableid)||'.';
-
In an FSEDIT or FSVIEW SCL program, display on
the command line the name of the table that is currently being edited:
_msg_='The table being edited is '||dsname()||'.';
OPEN
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.