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