SAS Component Language Dictionary |
Category: | SAS Table |
Syntax | |
Examples | |
See Also |
Syntax |
table-name=DSNAME(<table-id>); |
contains either the table name that is associated with the specified table-id value, or a blank if an invalid value is specified.
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.
Examples |
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()||'.';
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.