Getting a -812 on Easytrieve Db2 program compile
search cancel

Getting a -812 on Easytrieve Db2 program compile

book

Article ID: 15289

calendar_today

Updated On:

Products

Easytrieve Report Generator PAN/SQL

Issue/Introduction

Upgrading to DB2v10 and doing a Bind Plan

Getting a -812 recompiling an Easytrieve program that has SQL code

The Bind syntax for the PLAN that results in the SQLCODE -812 is:
BIND PLAN(DOETPC1) PKLIST(*.DONOCOL) -
DEGREE(1) VALIDATE(BIND) ISOLATION(CS) -
FLAG(E) CURRENTDATA(NO) RELEASE(COMMIT) -
RETAIN CACHESIZE(0) ACQUIRE(USE) -
EXPLAIN(NO) ACTION(REPLACE)

Environment

DB2v10, doing a Bind Package, and a Bind Plan.

Resolution

The Bind syntax for the PLAN that results in clean run is:
BIND PLAN(DOETPC1) PKLIST(*.DONOCOL.*) -
DEGREE(1) VALIDATE(BIND) ISOLATION(CS) -
FLAG(E) CURRENTDATA(NO) RELEASE(COMMIT) -
RETAIN CACHESIZE(0) ACQUIRE(USE) -
EXPLAIN(NO) ACTION(REPLACE)

The difference is very slight - PKLIST(*.collid) results in SQL -812 Execution. PKLIST(*.collid.*) results in clean run. 

Additional Information