NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
C-68
Examples—CONTINUE
Examples—CONTINUE
The following SQLCI example cancels a DDL operation about to begin its final
phase:
>> ALTER TABLE $D1.MDB.EMP PARTONLY MOVE $D2.MDB.EMP
WITH SHARED ACCESS NAME MOVE_EMP_TABLE
COMMIT BY REQUEST;
*** WARNING from SQL [1618]: The MOVE_EMP_TABLE
statement is ready to commit.
*** WARNING from SQL [1619]: To continue processing, please
enter a commit or rollback with a CONTINUE statement.
D>CONTINUE MOVE_EMP_TABLE ROLLBACK WORK;
*** ERROR from SQL [-1620]: The ROLLBACK was requested
as part of the commit criteria. The command has
been aborted.
>>
The following SQLCI example commits a DDL operation about to begin its final
phase. The example uses a FUP LISTOPENS command to verify that there is no
activity on the partition being moved before issuing a CONTINUE statement.
>> ALTER TABLE $D1.MDB.PART1 PARTONLY MOVE $D2.MDB.PART1
WITH SHARED ACCESS NAME PART1_MOVE
COMMIT BY REQUEST;
*** WARNING from SQL [1618]: The PART1_MOVE statement is
ready to commit.
*** WARNING from SQL [1619]: To continue processing, please
enter a commit or rollback with a CONTINUE statement.
D>FUP LISTOPENS $D1.MDB.PART1;
D>CONTINUE PART1_MOVE COMMIT WHEN READY
ONCOMMITERROR COMMIT BY REQUEST;
--- SQL operation complete.
>>