Chapter 2. DB2 for i5/OS performance basics 27
Advantages of SQL packages
Because SQL packages are a shared resource, the information built when a statement is
prepared is available to all the users of the package. This saves processing time, especially in
an environment when many users are using the same or similar statements. Because SQL
packages are permanent, this information is also saved across job initiation or termination
and across initial program loads (IPLs). In fact, SQL packages can be saved and restored on
other systems. By comparison, dynamic SQL requires that each user go through the prepare
processing for a particular statement and do this every time the user starts the application.
SQL packages also allow the system to accumulate ...