If by 'specific' you mean that you exactly know the option's name then I prefer things like
[pre]
%* display selected options on log ;
%put %sysfunc(getoption(linesize,keyword)) ;
%put %sysfunc(getoption(pagesize,keyword)) ;
[/pre]
If you change these options within a SAS session (be it foreground or background) temporarily, good practice is to do it somewhat like
[pre]
%let _ls = %sysfunc(getoption(linesize,keyword)) ;
%let _ps = %sysfunc(getoption(pagesize,keyword)) ;
options linesize=200 pagesize=100 ; /* hypothetic values */
%* do some SAS things here ;
options &_ls &_ps ;
[/pre]
Alternatively you could use procedures OPTSAVE and OPTLOAD to front-end temporary modifications.
... View more