GETOPTIONS( ) function
Returns the current setting for the specified Analytics option (Options dialog box setting).
Syntax
GETOPTIONS(option)
Parameters
Name | Type | Description |
---|---|---|
option | character |
The Analytics option to return a setting for. The name of the option must be specified exactly as it appears in the list below, and it must be enclosed in quotation marks:
Note Currently, "separators" is the only option that can be specified for the GETOPTIONS( ) function. |
Output
Character.
Examples
Basic examples
Returns the current settings for the three Analytics separator characters. For example, ".,,":
GETOPTIONS("separators")
Advanced examples
Using GETOPTIONS( ) in a script
If a script needs to change one or more of the Analytics separator characters, the GETOPTIONS( ) function provides a method for discovering the current settings. The current settings can be stored in a variable and then reinstated at the end of the script.
ASSIGN v_SeparatorsSetting = GETOPTIONS("separators")
SET SEPARATORS ",.;"
<script content>
SET SEPARATORS "%v_SeparatorsSetting%"
Remarks
The three Analytics separator characters are specified in the following options in the Options dialog box:
- Decimal Place Symbol
- Thousands Separator
- List Separator