As400 db2 connection problem, need help please

This web app was created on local, when placed on the server it crashes. On crashing, TCP/IP re-starts and consistency checking is performed.

Here are snippets of the code:

Options

Uselsx “*LSXODBC”


Declarations

Dim conAS400 As ODBCConnection

Dim dbNotes As NotesDatabase

Dim sesNotes As NotesSession


Initialize

Set sesNotes = New NotesSession

Set dbNotes = sesNotes.CurrentDatabase

If Not fcnLogon Then

Exit Sub

End If

RetrieveInfo (parm1), (parm2), (parm3)

conAS400.Disconnect


fcnLogon()

Set conAS400 = New ODBCConnection

REM* Connect to as400.

If Not conAS400.ConnectTo(strDataSource, strUserName$, strPassWord$) Then

Exit Function

End If


Sub RetrieveInfo()

Dim resOverview As New ODBCResultSet

Set resOverview = New ODBCResultSet

Set resOverview.Connection = conAS400

Call resOverview.ExecProcedure(“XXXX”,"XXXX ", strPassData)

It seems to crash on the “Set resOverview.Connection = conAS400” statement.

Prior to getting to this part of the code, it does two sql’s to retrieve some other data. Then it does several call to stored procedures, this one is the first stored procedure.

This worked fine on local… I’m stumped. I sure hope someone can help me.

Subject: as400 db2 connection problem, need help please

Hello friends…i must join to Terry request of Help…it also happens to me that migrating from Lotus 4.6.7 to Domino 6 my scripts and agents connecting to AS400 don’t work anymore!!! I changed all the methods from lsxdb2 DLL to lsxodbc ones… but every script stops when it calls the connection…

I really hope that someone help us…'cause i forced a lot my boss to migrate to D6.

Thanks in advance to all of you.

Regards, Daniele.

Subject: as400 db2 connection problem, need help please

Did you try checking conAS400.IsConnected to make sure it is still a valid connection?