Thanks to answer me.
I bind the program in this way :
bind carven.bnd
I create this program, called carven, that when it issue call a static
library call libtrk, in order to connect to db and this step is ok.
After execute a cursor, open/fetch, and this step is ok.
After in a loop for every record try to translate a value. for this reason i
call a function in the library. Here happen that all statment before the
query it was execute perfectly but do not execute the query, i don't know
why. After, always in the library, write in the log file the failure 51002.
I start with a devolep machine that is a Unix Aix machine, that have a user
equal to schema equal to istance name
When I copied in the staging machine, the environment is : user is different
from a istance name but is equal to a schema but it different from a schema
of develop machine.
Ah! other program that read a file idoc and write in the load table work
right well.
Regards
Sergio
"Knut Stolze" <st****@de.ibm.com> ha scritto nel messaggio
news:d5**********@fsuj29.rz.uni-jena.de...
eap90210 wrote:
Hi to all ng
I 'm a non expert user og db2 and i made a program that it connect to
db2
and after goes to a table, verify that exists a value and after return
success or not.
My problem is that for the connection and for the verify I made a
library,
all the library and program made in c language, and seems that is not
knows the sql code
the error is SQLSTATE [51002]
For complete informatio i said that this program function right well in
db2 version 7.2 but when I transport in db2 v8 after the rebind i have
this problem
How exactly did you do the "rebind"? SQLSTATE 51002 says that a package
could not be found. So I guess that something in the bind-process didn't
work out as you expected.
--
Knut Stolze
Information Integration
IBM Germany / University of Jena