Revision: 64183
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 12, 2013 01:11 by webonomic
Initial Code
/*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' ) */
Initial URL
http://www.sascommunity.org/wiki/Tip_of_the_Day:July_11
Initial Description
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:
Initial Title
Using PATHNAME to Retrieve a Physical Path
Initial Tags
path, function
Initial Language
SAS