DSNAME Function


DSNAME Function

Returns the SAS data set name that is associated with a data set identifier

Category: SAS File I/O

Syntax

DSNAME ( data-set-id )

Arguments

data-set-id

  • specifies the data set identifier that the OPEN function returns.

Details

DSNAME returns the data set name that is associated with a data set identifier, or a blank if the data set identifier is not valid.

Examples

This example determines the name of the SAS data set that is associated with the variable DSID and displays the name in the SAS log.

 %let dsid=%sysfunc(open(sasuser.houses,i));  %put The current open data set  is %sysfunc(dsname(&dsid)).; 

See Also

Function:

  • 'OPEN Function' on page 690




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net