%sysget

From sasCommunity
Jump to: navigation, search

The macro function sysget returns the value of an environment variable (e-var).

E-vars are allocated by either of:

  • operating system
  • SASv9.cfg

The SASv9.cfg allocation syntax is:

-set EvarA 'value' 

The SAS statement is:

options set = EvarB 'value';

The fetch is:

%Let MacroVar = %sysget(EvarC);


References

--macro maven == the radical programmer 20:24, 2 February 2009 (EST)