You can use Db2 Admin Tool to view the
SQL statements that are included in a package.
Procedure
To view SQL statements for a package:
On the DB2 Administration Menu
(ADB2) panel, specify option
1, and press Enter.
On the System Catalog
(ADB21) panel, specify option
K (for packages), and press Enter.
On the Packages (ADB21K)
panel, specify the
SQ line command next to the package for which you want to view the SQL
statements.
The Extracted SQL
(ADB21KSE) panel displays the SQL
statements in the package:
Optional:
To get EXPLAIN information for one or more of the listed SQL statements, issue the C line
command or the CC block line command and specify one of the following primary commands:
EXPLAIN
Explains the selected SQL statement.
PLANTAB
Displays EXPLAIN rows for the selected SQL statement.