Search notes:

SAS programming, function getoption

The getoption function returns the value of an option.
data _null_;
  
   opt = getoption('work');
   put 'Value of option work is ' opt;
   
run;
Github repository about-SAS, path: /programming/functions/getoption/basic.sas

getoption with some parameters

options pagesize=100;
%put pagesize = %sysfunc(getoption(pagesize              )); /* pagesize = 100               */
%put pagesize = %sysfunc(getoption(pagesize, howset      )); /* pagesize = Options Statement */
%put pagesize = %sysfunc(getoption(pagesize, defaultvalue)); /* pagesize = 21                */
%put pagesize = %sysfunc(getoption(pagesize, startupvalue)); /* pagesize = 60                */
%put pagesize = %sysfunc(getoption(pagesize, howscope    )); /* pagesize = IOM ROOT COMP ENV */
Github repository about-SAS, path: /programming/functions/getoption/parameters.sas

See also

proc options
functions

Index