SAS Component Language Dictionary |
Category: | SAS System Option |
Syntax | |
Details | |
Examples | |
Example 1: Using the OPTSETC Function | |
Example 2: Using the OPTSETN Function | |
See Also |
Syntax |
rc=OPTSETC(option-name,cval); |
rc=OPTSETN(option-name,nval); |
contains the return code for the operation:
0 | |
0 |
is the new numeric setting for the option. For options with binary settings of ON and OFF, specify an nval of 1 to turn the option on and 0 to turn it off.
Details |
If you try to use OPTSETC to assign a value to a numeric option or OPTSETN to assign a value to a character option, an error message is generated. To determine whether a SAS system option has a numeric or character setting, see the SAS documentation for your operating environment or SAS Language Reference: Dictionary.
For options that have ON/OFF settings (for example, DATE/NODATE), use OPTSETN, because the options have the numeric values 1 for ON and 0 for OFF.
You can view current option settings by using the OPTIONS procedure in the SAS session or by using the OPTIONS command.
Examples |
Set the COMPRESS option to allow compression of new SAS tables:
rc=optsetc('compress','yes');
rc=optsetn('caps',1);
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.