![]() Chapter Contents |
![]() Previous |
![]() Next |
| OPTSETC and OPTSETN |
| 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); |
| 0 | successful |
0 |
not successful |
Type: Numeric
Type: Character
Type: Character
Type: Numeric
| 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');
Turn on the CAPS option:
rc=optsetn('caps',1);
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.