@Joseg
La funcion
sqlite3_step espera el valor por value no por reference seria asi :
Código COBOL:
working-storage.
01 stmt-handle PIC 9(9) COMP-5.
01 redefines stmt-handle.
05 pStmt usage pointer.
Código COBOL:
call "sqlite3_step" & X"00" WITH STDCALL LINKAGE
using by value stmt-handle
returning BD-STATUS
end-call
Saludos...