As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tips Talk:Using PATHNAME to Retrieve a Physical Path

From sasCommunity
Jump to: navigation, search

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:

1    %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' )

--Jack Hamilton 14:12, 10 March 2009 (EDT)


I was thinking that I might do a series of tips on retrieving a path. As always there is so much to say, yet only a very limited space. If you think that there is room this could be added to the tip. --Art Carpenter 23:34, 10 March 2009 (EDT)


There's an informal limit on how long a tip can be, but I don't know what that limit is. DonH suggested for one of my tips that I write a longer article and link to it in the tip. --JackHamilton 23:48, 10 March 2009 (EDT)


Since the tips appear on the main page we don't want them to be longer than a couple of sentences (that is on the instructions page for submitting a tip - perhaps we need to do something to highlight that) and probably no more that a couple of inches high for a maximized browser. A tip should be quick to read and provide a teaser to the read more (to antoher wiki article) or see also (to an external link) for the interested reader. This tip with the sashelp example is probably right around the upper bounds for the length (maybe a little too long - but the length criteria is pretty flexible). --Don Henderson 11:33, 11 March 2009 (EDT)

Good tip. Am assuming that incorporating Jack's comment suggests he likes the tip. If so, we need one more reviewer to say it is OK so it can be promoted to Tip Ready. --Don Henderson 21:49, 11 March 2009 (EDT)

Good tip! --Nancy 07:56, 12 March 2009 (EDT)


Isn't this a duplication of Tips:Using the PATHNAME Function? -- chang_y_chung 05:21, 15 January 2011 (UTC)
The sad thing is that a year later I can't remember writing either one. :-( --Art Carpenter 15:46, 21 March 2012 (EDT)


Some of the same info. Note the comment above about creating a series of tips. --Don Henderson 13:57, 15 January 2011 (UTC)