IBM i 7.1 does not work on AS / 400 or iSeries hardware. This is not a semantic thread: Internet searches for ODBC and AS400 will return ancient and unrealizable results.
The question does not include a specific error message, as well as a specific scenario for this error to occur. I assume that you are seeing an object lock (not a write lock) on CLRPFM. If so, the main reason is that the database manager does not completely close the cursors; it gently closes them (sometimes called pseudo close) for performance reasons.
-SQL-, (, SAVOBJ, CLRPFM, DLTF, RGZPFM ..), ALCOBJ , . ALCOBJ OBJ((SOMSCHEMA/SOMETABLE *FILE *EXCL)) WAIT(1) CONFLICT(*RQSRLS)
, , , IBM i, , .
:
ODBC, RPG, , , . - , - SHRRD ( ). - , - * SHRUPD ( ). , IBM i.
; Cognos- SHRUPD , RPG , , . .
, , , (* EXCL) . CLRPFM, RGZPFM, SAVOBJ. Cognos * SHRUPD (WRKOBJLCK ), , CLRPFM, * EXCL CPF3203 - .
, , - . ODBC :
DB2 , "close cursor" * SHRUPD. , DB2 -, , Cognos (, , ). - EXCL , Cognos ? , , CLRPFM . , CPF3203.
( Cognos, !), DB2, , , CLRPFM. ALCOBJ CONFLICT (* RQSRLS) - , . CL, CLRPFM. - SQL . 7.1 SQL CL-, CLRPFM TEMPFILE RUNSQL " tempfile" - SQL, * EXCL .
EDIT: RGZPFM
, RGZPFM . : " ", . , . , , . : , , "". , , . ; .
, DELETE , . - , RGZPFM. RGZPFM - , CPYF. RGZPFM ( ) . , " ".
2014, , . - , CREATE TABLE, , RGZPFM. - RGZPFM, - . SQL SELECT, , . , ; , , , DELETE. , goot.