If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Connet remote db with SQL cobol

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-03, 05:08
tatmon tatmon is offline
Registered User
 
Join Date: Oct 2003
Posts: 2
Connet remote db with SQL cobol

Hi all,

I try to connect to a remote database DB2/400 from another AS/400 like this:

EXEC SQL CONNECT TO :BNAME USER :USERID USING :P-WORD
END-EXEC.

The compilation is ok, but when I run it, I have these errors messages:

Database connection started over TCP/IP or a local socket.
SQL package TESTREMOTE in TAMSDEVF00 not found at DRDA Server.
*** ERROR Occurred while connecting SQLCODE= -805

I also try to create a SQL package but no success.

CRTSQLPKG PGM(TAMSDEVF00/TESTREMOTE) USER(xxx) PASSWORD(yyy)

Can anyone help me ?
Thanks in advance.
Tatmon
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On