Validating authorization for executing plans or packages
You can use the VALIDATE option to control how DB2® handles existence and authorization errors.
About this task

The following values for the VALIDATE option determine how DB2 is to handle existence and authorization errors:
- RUN
- If you choose RUN for the VALIDATE option, the bind succeeds even when existence or authorization errors exist. DB2 checks existence and authorization at run time.
- BIND
- If you choose BIND for the VALIDATE option, which is recommended, the bind fails when existence or authorization errors exist. Exception: If you use the SQLERROR(CONTINUE) option on the BIND PACKAGE command, the bind succeeds, but the package's SQL statements that have errors cannot execute.
The corresponding existence and authorization checks for remote objects are always made at run time. Authorization to execute dynamic SQL statements is also checked at run time. Applications that use the Resource Recovery Services attachment facility (RRSAF) to connect to DB2 do not require a plan.
