SQL7912 - ODP created

SQL7912
Message Text: ODP created.
Cause Text: An Open Data Path (ODP) has been created. No reusable ODP could be found. This occurs in the following cases:
  • This is the first time the statement has been run.
  • A RCLRSC has been issued since the last run of this statement.
  • The last run of the statement caused the ODP to be deleted.
  • If this is an OPEN statement, the last CLOSE of this cursor caused the ODP to be deleted.
  • The Application Server (AS) has been changed by a CONNECT statement.
Recovery Text: If a cursor is being opened many times in an application, it is more efficient to use a reusable ODP, and not create an ODP every time. This also applies to repeated runs of INSERT, UPDATE, DELETE, and SELECT INTO statements. If ODPs are being created on every open, see the close message to determine why the ODP is being deleted.

No ODP was found that could be used again. The first time that the statement is run or the cursor is opened for a process, an ODP will always have to be created. However, if this message appears on every run of the statement or open of the cursor, the tips recommended in Retaining cursor positions for non-ILE program calls should be applied to this application.