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:Automatically assign Unix environment variables to SAS macro variables
Any references in the SAS help? --Murphy Choy From Singapore 05:27, 4 April 2011 (UTC)
Hi Murphy, I'm not sure I understand your question. Are you asking me if there are any references to this technique in the SASHelp? --Darrelcusey 16:01, 13 April 2011 (UTC)
Hi Darrel, yup that is what I meant. As with Wikipedia, some form of citations will be relevant to users who are interested in finding out more. --Murphy Choy From Singapore 16:20, 13 April 2011 (UTC)
OK makes sense, I'll add some citations - thanks! --Darrelcusey 16:24, 13 April 2011 (UTC)
Hopefully, we will be able to promote this tip soon. Thanks! --Murphy Choy From Singapore 16:27, 13 April 2011 (UTC)
Are these citations sufficient, or would you like to see some more?
Good tip. Did a little wiki gardening. --Don Henderson 12:37, 4 May 2011 (UTC)
Good tip. --Art T 19:13, 9 May 2011 (UTC) --- good tip - promoting --Art Carpenter 18:42, 8 July 2011 (UTC)
Also works for Windows
Jiang notes that this technique also works in Windows environments since the 'set' command is also valid under Windows. I moved his inline aside comment to be a note below the article because the tip is specific to UNIX enviroments and placing the comment as an aside near the beginning of the article was confusing. Also the SAS code has (presumably) only been tested on a UNIX environment and the SAS articles are UNIX specific. While the SET command is also available in Windows, the source code that works in UNIX may not work on all versions of Windows. Or some of the code may be superfluous because UNIX does things that Windows does not. A separate tip about Windows is probably needed, with code that has been tested on various Windows environments. - Cameron (talk) 05:42, 26 July 2014 (CDT)
This code may be problematic in cases where the name of the environment variable is not a valid SAS macro variable name. Lex Jansen 16:00, 26 July, 2014 (UTC)