/ Published in: SAS
If you know a libref or fileref, the PATHNAME function can be used to return the physical location.
If the libref refers to more than one physical location, all of those locations will be returned, in quotes, separated by spaces, with the whole list in parentheses:
If the libref refers to more than one physical location, all of those locations will be returned, in quotes, separated by spaces, with the whole list in parentheses:
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*Single file reference*/ libname sasclass 'c:\training\basics'; %let loc = %sysfunc(pathname(sasclass)); /*Multiple files reference*/ %put %sysfunc(pathname(sashelp)); /* ( 'C:\Program Files\SAS\SAS 9.1\nls\en\SASCFG' 'C:\Program Files\SAS\SAS 9.1\core\sashelp' 'C:\Program Files\SAS\SAS 9.1\af\sashelp' 'C:\Program Files\SAS\SAS 9.1\assist\sashelp' 'C:\Program Files\SAS\SAS 9.1\connect\sashelp' 'C:\Program Files\SAS\SAS 9.1\eis\sashelp' 'C:\Program Files\SAS\SAS 9.1\ets\sashelp' 'C:\Program Files\SAS\SAS 9.1\graph\sashelp' 'C:\Program Files\SAS\SAS 9.1\iml\sashelp' 'C:\Program Files\SAS\SAS 9.1\insight\sashelp' 'C:\Program Files\SAS\SAS 9.1\lab\sashelp' 'C:\Program Files\SAS\SAS 9.1\or\sashelp' 'C:\Program Files\SAS\SAS 9.1\qc\sashelp' 'C:\Program Files\SAS\SAS 9.1\stat\sashelp' 'C:\Program Files\SAS\SAS 9.1\tmine\sashelp' ) */
URL: http://www.sascommunity.org/wiki/Tip_of_the_Day:July_11