Thread: DB2

-805 when driver XCTLs to the DB2 program

Started by Anita • user3 replies160 viewsLast activity 3 weeks ago
Post #1
0 votes
Anita
Reputation
118
Posts: 23
Joined: May 29, 2025, 12:45 PM
Posted: Jul 22, 2026, 10:11 AM

Add program works when I transact straight to it. Driver does XCTL into the same program and the INSERT gets -805.

Plan name matches the program name. Why would XCTL change anything?

Post #2
0 votes
Dave
Reputation
356
Posts: 25
Joined: Jul 21, 2024, 2:55 PM
Posted: Jul 22, 2026, 1:11 PM

XCTL itself is fine. Usually the driver's DB2ENTRY / plan setup differs, or the called program's package is not in the plan the thread is using.

Check which plan the thread actually has under CEDF (auth and plan on the SQL display). Bind the DBRM into that plan/collection, not just a plan that happens to share the program name.

Post #3
1 votes
Elena
Reputation
391
Posts: 19
Joined: Apr 18, 2024, 9:30 AM
Posted: Jul 23, 2026, 12:11 PM

Also compare PKLIST on both paths. Dynamic plan switching surprises people.

You must be signed in to reply to this thread