Statement Block
Use a statement block to specify SPL and SQL operations to take place when an SPL statement that includes this segment is executed.
Syntax
(explicit id sbl002)
sbl002
(explicit id sbl003)
sbl003
(explicit id sbl004)
sbl004
(explicit id sbl005)
sbl005
(explicit id sbl006)
sbl006
(explicit id sbl007)
sbl007
Statement Block
[ <DEFINE Statement>[] ]
[ <ON EXCEPTION Statement>[] ]
[ { | <EXECUTE FUNCTION Statement>[] | <EXECUTE PROCEDURE Statement> [] | <Subset of SPL Statements>[] | <Subset of SQL Statements>[] ; | BEGIN <Statement Block>END } ]
Usage
SPL and SQL statements can appear in a statement block, a set of zero or more statements that can define the scope of a variable or of the ON EXCEPTION statement. If a statement block is empty, no operation takes place when control of execution within the SPL routine passes to the empty SPL statement block.