PACKAGE_VERSION global variable
This built-in global variable contains the version identifier of the currently executing package.
This global variable has the following characteristics:
- It is read-only, with values maintained by system.
- The type is VARCHAR(64).
- The schema is SYSIBM.
- The scope is session.
If the current executing package does not have a version identifier, the value is NULL.
In a nested execution scenario, where one package invokes another, the PACKAGE_VERSION global variable contains the version identifier of the immediate package context. For example, if package A checks the value of the PACKAGE_VERSION variable, then the value is 1.0. If package A invokes package B and package B checks the value of the PACKAGE_VERSION variable, then the value is 1.8.