Sample 25212: SAMPLE: Use %SYSGET to load the value of a Unix environment variable into a macro variable
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
The HOME environment variable ($HOME) always contains
the path to the user's home directory.
%let HOMEDIR=%SYSGET(HOME);
data _null_;
put "The value of my HOME environment variable is: &HOMEDIR";
run;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This example demonstrates how to use %SYSGET to load the value of a Unix environment variable into a macro variable.
| Date Modified: | 2005-03-19 03:02:37 |
| Date Created: | 2005-02-10 13:20:18 |
Operating System and Release Information
| SAS System | Base SAS | 64-bit Enabled AIX | n/a | n/a |
| OpenVMS Alpha | n/a | n/a |
| 64-bit Enabled Solaris | n/a | n/a |
| 64-bit Enabled HP-UX | n/a | n/a |
| ABI+ for Intel Architecture | n/a | n/a |
| AIX | n/a | n/a |
| HP-UX | n/a | n/a |
| HP-UX IPF | n/a | n/a |
| Linux | n/a | n/a |
| Solaris | n/a | n/a |
| Tru64 UNIX | n/a | n/a |