Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect to IBM i (AS/400)

Status
Not open for further replies.

Vadim

Programmer
Feb 5, 2002
75
0
0
US
I have a lot of Excel files with VB macro that connect to IBM i.
I connect to IBM i with this string
----------------------------------------------------------------------
Function open_con()
cnMYAS400.Open "provider=IBMDA400;data source=192.001.01.99;User Id=myuid;Password=mypwd;"
Set cmMYSQLCMD.ActiveConnection = cnMYAS400
End Function
----------------------------------------------------------------------

They are stop to run on Windows 10.
The error is '3706 - provider cannot be Found. I may not be properly installed.'

Is it possible to connect to IBM i?
How to do it?
Thank you

 
Hi,

1) I assume that you have a reference set to the ActiveX Data Objects (ADO) object library. Maybe not. If not Tools > References... Microsoft ActiveX Data Objects m.n Library

2) I assume that you need to supply a user I'd and password in your connection string, myuid and mypwd, so...
Code:
X = "...;User ID=" & myuid & ";Password=" & mypwd & ";"


Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
I supplied id and password, also marked all data library on reference tab.
The problem is IBM do not support connection like they do before.
I asked is it any way to go around it with IBM CA Solution?
Thanks
 
Having IBM Client Access installed on my PC, this works to connect to iSeries:

Code:
'## Enter Login-Data
csebk="IBPTEST"
userid="LC0D200"
pwd="test"

'## using ADO
' Connection String
connection_string =  "PROVIDER=IBMDA400;DATA SOURCE=" & csebk & _
                     "; USER ID=" & userid & "; PASSWORD=" & pwd

' Open ADO connection 
set connection = CreateObject("ADODB.Connection")
connection.Open(connection_string) 

...
...
...

' Close Connection
connection.Close
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top