View previous topic :: View next topic |
Author |
Message |
Frankjiang Beginner
Joined: 10 Jan 2004 Posts: 17 Topics: 10 Location: england
|
Posted: Tue Feb 10, 2004 2:42 pm Post subject: What's wrong when connect with DB2 ? |
|
|
Hi:
I want to try SQL connection with DB2 AT FUJITSU VER 4 Cobol.
'JHDB2' IS ODBC CONNECTION WITH DB2, CONNECTION TEST SUCCEED.
**********************************************
PROCEDURE DIVISION.
0000-BEGIN.
EXEC SQL
CONNECT TO 'JHDB2'
END-EXEC.
...
When execute:
Error message occurred: JMP0371I-U [PID:000008E0 TID:00000928]
ENVIRONMENT INFORMATION FILE ERROR TO PERFORM SQL. '@SQL_SERVER'.
PGM=JHSAMPLE ADR=00401384
***********************************************
I can not find problem.
Someone can show me the reason.
Thank you.
Frank _________________ franklin |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
Posted: Tue Feb 10, 2004 4:02 pm Post subject: |
|
|
Frank,
A 2 second search on google for "JMP0371I-U" gave this link for COBOL with ODBC Tips which is the very first link in the search.
It mentions that you need to check that you have specified the full path name in the @ODBC_Inf COBOL environment variable and that the ODBC Information File is there.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
Frankjiang Beginner
Joined: 10 Jan 2004 Posts: 17 Topics: 10 Location: england
|
Posted: Wed Feb 11, 2004 12:36 am Post subject: |
|
|
Hi kolusu:
It is helpful.
Thanks
Frank _________________ franklin |
|
Back to top |
|
|
|
|