Oracle® OLAP DML Reference 10g Release 1 (10.1) Part Number B10339-02 |
|
|
View PDF |
The OKNULLSTATUS option determines whether Oracle OLAP allows a dimension status list to be set to null. The default is to not allow an empty status list. When null status lists are not allowed, Oracle OLAP produces an error message when you execute a LIMIT command that would result in a null status list.
Data type
BOOLEAN
Syntax
OKNULLSTATUS = {YES|NO}
Arguments
Indicates that null status lists are allowed. With this setting, when you execute a LIMIT command (without the IFNONE argument) that results in a dimension status list being null, the status list is set to null, and no error message is produced.
Indicates that null status lists are not allowed. With this setting, when you execute a LIMIT command (without the IFNONE argument and without the NULL keyword) that would result in a dimension status list being null, the status list is not changed and an error message is produced. (Default)
Notes
The value of OKNULLSTATUS has no effect in the following situations.
When a LIMIT command includes an IFNONE argument. An IFNONE argument indicates that program execution should not take its normal course when a dimension status list or valueset were to be set to null. Therefore, when IFNONE is present, Oracle OLAP branches to the IFNONE label and does not set the status list or valueset to null, even when OKNULLSTATUS is YES
.
When a LIMIT command uses the NULL keyword to set a dimension status list to null. The status list is set to null, and no error message is produced, even when OKNULLSTATUS is NO
.
When a LIMIT command sets a valueset to null (unless the IFNONE argument is used). The valueset is set to null, and no error message is produced, even when OKNULLSTATUS is NO
.
When a LIMIT function is specified to return a null dimension status list. The value returned is NA
, and no error message is produced, even when OKNULLSTATUS is NO
.
See the LIMIT command for more information about using null status in dimensions and valuesets.
Examples