Search notes:

SAS: proc options

value

Query the value of an option.
proc options
     option = cmplib value;
run;
/* Log:

Option Value Information For SAS Option CMPLIB
    Value: work.funcs
    Scope: IOM ROOT COMP ENV
    How option value set: Options Statement
*/

proc options
     option = work value;
run;
/* Log:

Option Value Information For SAS Option WORK
    Value: /var/app/sas/work/SAS_workD98E0000C722_lnxDEDD.renenyffenegger.ch/SAS_work7CDD0000C722_lnxDEDD.renenyffenegger.ch
    Scope: IOM ROOT COMP ENV
    How option value set: Config File
    Config file name:
            /usr/app/sas/home/SASFoundation/9.4/sasv9.cfg

*/
Github repository about-SAS, path: /programming/proc/options/value.sas
The value of an option can also be determined with the getoption function.

Define an option and show its value

proc options
     option = cmplib value;
run;
/* Log:

Option Value Information For SAS Option CMPLIB
    Value: work.funcs
    Scope: IOM ROOT COMP ENV
    How option value set: Options Statement
*/

proc options
     option = work value;
run;
/* Log:

Option Value Information For SAS Option WORK
    Value: /var/app/sas/work/SAS_workD98E0000C722_lnxDEDD.renenyffenegger.ch/SAS_work7CDD0000C722_lnxDEDD.renenyffenegger.ch
    Scope: IOM ROOT COMP ENV
    How option value set: Config File
    Config file name:
            /usr/app/sas/home/SASFoundation/9.4/sasv9.cfg

*/
Github repository about-SAS, path: /programming/proc/options/value.sas

config

Show which configuration files were used when the system and/or session started up:
proc options
     option=config;
run;
Github repository about-SAS, path: /programming/proc/options/config.sas

groups

SAS classifies options into groups. The group names can be queried with listgroup, the options belonging to a certain group can be queired with group=GROUPNAME:
proc options
     listgroups;
run;

proc options group=adabas           ; run;
proc options group=animation        ; run;
proc options group=codegen          ; run;
proc options group=communications   ; run;
proc options group=datacom          ; run;
proc options group=dataquality      ; run;
proc options group=db2              ; run;
proc options group=email            ; run;
proc options group=envdisplay       ; run;
proc options group=envfiles         ; run;
proc options group=errorhandling    ; run;
proc options group=execmodes        ; run;
proc options group=extfiles         ; run;
proc options group=graphics         ; run;
proc options group=help             ; run;
proc options group=idms             ; run;
proc options group=ims              ; run;
proc options group=inputcontrol     ; run;
proc options group=install          ; run;
proc options group=ispf             ; run;
proc options group=languagecontrol  ; run;
proc options group=listcontrol      ; run;
proc options group=logcontrol       ; run;
proc options group=log_listcontrol  ; run;
proc options group=macro            ; run;
proc options group=memory           ; run;
proc options group=meta             ; run;
proc options group=odsprint         ; run;
proc options group=pdf              ; run;
proc options group=performance      ; run;
proc options group=rexx             ; run;
proc options group=sasfiles         ; run;
proc options group=security         ; run;
proc options group=smf              ; run;
proc options group=sort             ; run;
proc options group=sql              ; run;
proc options group=svg              ; run;
proc options group=tk               ; run;
Github repository about-SAS, path: /programming/proc/options/groups.sas

Querying multiple options

proc options
     option=pagesize
     option=papersize;
run;

proc options
     option=(pagesize papersize);
run;
Github repository about-SAS, path: /programming/proc/options/multiple.sas

Querying restricted options

Restricted options can be queried with proc options restrict; run;.

Querying internal options

proc options internal;
run;

See also

SAS options
SAS programming: proc

Index