


The VAR statement defines module-local variables in an SQL-PL module. Without an explicit declaration of the variables, the local variables (dynamic as well as static) are subject to the naming conventions familiar from earlier versions.
Examples: Declaration of local-dynamic variables

Examples: Declaration of local-static variables

The VAR statement immediately follows the module header. A maximum of two VAR statements may be formulated to define local-dynamic variables as well as local-static variables.
Syntax:



