MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What's wrong when connect with DB2 ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Frankjiang
Beginner


Joined: 10 Jan 2004
Posts: 17
Topics: 10
Location: england

PostPosted: Tue Feb 10, 2004 2:42 pm    Post subject: What's wrong when connect with DB2 ? Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Tue Feb 10, 2004 4:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Frankjiang
Beginner


Joined: 10 Jan 2004
Posts: 17
Topics: 10
Location: england

PostPosted: Wed Feb 11, 2004 12:36 am    Post subject: Reply with quote

Hi kolusu:

It is helpful.

Thanks

Frank
_________________
franklin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group