Accessing multiple DB2® plans in IMS

All the database request modules (DBRMs) that run together using a single IMS PSB must be bound together in a single DB2® plan.

The following programs run together using a single IMS PSB:
  • A main program and all programs it calls.
  • A program and all programs that it transfers to using a transfer to program statement.
You can change DB2® plans with the following techniques:
  • Transfer to a new program using a transfer to program statement, change the sysVar.transactionID system variable to a new transaction code, and then do a converse before using any SQL I/O options. For more information on this technique, see Accessing DB2 plans using sysVar.transactionID.
  • Transfer control to a new transaction using a transfer to transaction statement. Different transactions can use different PSBs and can, therefore, have different DB2® plans.