|Oracle® OLAP DML Reference
10g Release 1 (10.1)
Part Number B10339-02
The BREAK command transfers program control from within a SWITCH, FOR, or WHILE statement to the statement immediately following the DOEND associated with SWITCH, FOR, or WHILE. You can use BREAK only within OLAP DML programs and only with the SWITCH, FOR, or WHILE statements.
Example 8-32 Using BREAK with SWITCH
The following lines from a program include a SWITCH statement with two case labels. The last statement under each case label is BREAK, which ensures that execution does not continue from one set of case statements to the next. Each BREAK statement transfers control to the statement that follows DOEND.
SWITCH userchoice DESCRIPTION 'MARKET REPORT\NFINANCE REPORT\NNO REPORT') DO CASE 'market': ... BREAK CASE 'finance': ... BREAK DEFAULT: ... BREAK DOEND cleanup: ...