472,353 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Connection Via ADO to AS400

Hi

Can anyone please help as I am going nuts This script fails and I
cannot get it to work in any fashion.

I have the following simple code

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head> </head>
<body>
<%
Dim Parent
Dim BomSet
Dim SelectString
Dim conn

Set conn = Server.CreateObject ("ADODB.Connection")
conn.Open "Provider = Mapics; User ID = XXXXXX ;Password =
XXXXXX;"
Parent = "NEW3WTFB3-1"
Set BomSet = Server.CreateObject("ADODB.Recordset")
SelectString = "Select PINBR, USRS1, CINBR, QTYPR From
AMFLIBA.PStruc WHERE Pinbr = "'" & Parent & "'"
With BomSet
.CursorType = 0
.CursorLocation = 2
.LockType = 1
Open SelectString
End With

While not BomSet.Eof
Response.Write Parent & " - " &
BomSet.Fields.Item("Cinbr").Value
BomSet.MoveNext()
Wend
BomSet.Close

Conn.Close
Set Conn = Nothing
%>
</body>
</html>

-------------------------------------------------------------------
The error displayed at run time is

ADODB.Connection error '800a0e7a'

Provider cannot be found. It may not be properly installed.

/DundeeMIS/BOMXplosion.asp, line 12
-------------------------------------------------------------------

The actual line is

conn.Open "Provider = Mapics; User ID = XXXXXX ;Password =
XXXXXX;"
The provider Maipcs is one we use for other applications ie using
Delphi, Lotusscript etc

I have also tried providing the connection data directly (dsnless
connection)

Data Source = "xxx.xxx.xxx.xxx"
Provider = "IBMDA400.DataSource.1"
Password = "XXXXXX"
User ID = "XXXXXX"
Protection Level = None
Initial Catalog = "MAPMODF"
Transport Product = "Client Access"
SSL = "DEFAULT"
Force Translate = 65535
Cursor Sensitivity = 3

but that does not work either

Anyone have any ideas?
Thanks in advance

Iain

May 8 '06 #1
1 3594

Iain wrote:
Hi

Can anyone please help as I am going nuts This script fails and I
cannot get it to work in any fashion.

I have the following simple code

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head> </head>
<body>
<%
Dim Parent
Dim BomSet
Dim SelectString
Dim conn

Set conn = Server.CreateObject ("ADODB.Connection")
conn.Open "Provider = Mapics; User ID = XXXXXX ;Password =
XXXXXX;"
Parent = "NEW3WTFB3-1"
Set BomSet = Server.CreateObject("ADODB.Recordset")
SelectString = "Select PINBR, USRS1, CINBR, QTYPR From
AMFLIBA.PStruc WHERE Pinbr = "'" & Parent & "'"
With BomSet
.CursorType = 0
.CursorLocation = 2
.LockType = 1
Open SelectString
End With

While not BomSet.Eof
Response.Write Parent & " - " &
BomSet.Fields.Item("Cinbr").Value
BomSet.MoveNext()
Wend
BomSet.Close

Conn.Close
Set Conn = Nothing
%>
</body>
</html>

-------------------------------------------------------------------
The error displayed at run time is

ADODB.Connection error '800a0e7a'

Provider cannot be found. It may not be properly installed.

/DundeeMIS/BOMXplosion.asp, line 12
-------------------------------------------------------------------

The actual line is

conn.Open "Provider = Mapics; User ID = XXXXXX ;Password =
XXXXXX;"
The provider Maipcs is one we use for other applications ie using
Delphi, Lotusscript etc

I have also tried providing the connection data directly (dsnless
connection)

Data Source = "xxx.xxx.xxx.xxx"
Provider = "IBMDA400.DataSource.1"
Password = "XXXXXX"
User ID = "XXXXXX"
Protection Level = None
Initial Catalog = "MAPMODF"
Transport Product = "Client Access"
SSL = "DEFAULT"
Force Translate = 65535
Cursor Sensitivity = 3

but that does not work either

Anyone have any ideas?


http://www.connectionstrings.com/

--
Mike Brind

May 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: mechweb | last post by:
I am trying to connect to a DB2 database on an AS400 via ASP. On the server I can connect fine using VB, but keep getting a communcation link...
2
by: Niyazi | last post by:
Hi, Our company uses IBM AS400 and DB2 (version 4.5 I guess). I have to do some report but I donot know how to access the AS400 DB2. I search IBM...
1
by: Matthew Wells | last post by:
Can someonne please tell me an ADO connection string to use to link an AS400 table to Access WITHOUT using a DSN? I want to use: ...
4
by: Matthew Wells | last post by:
FIRST OF ALL, I APPRECIATE PEOPLE SENDIUNG ME LINKS TO WEB SITES FOR CONNECTION STRINGS BUT AS I'VE SAID BEFORE THAT IS NOT WHAT I NEED. I CAN...
0
by: DT | last post by:
We have service oriented architecture that comprises of a number of Win2k/IIS boxes. Some of these web service applications access an AS400 system...
14
by: Brad Allison | last post by:
Sorry to repeat myself if this is the same question I asked in the past, but I have finally made a connection to our AS400 through ODBC. I tried to...
1
by: Iain | last post by:
Hi All I am creating a database trigger to write details real time from tables on one AS400 to another over our WAN. Is there such a concept as...
4
by: maneeshjp | last post by:
Hi to all, I have wrote a jsp-servlet program(using struts) which connects to DB2 via JDBC. I am using Tomcat5.5. JDBC driver as400thinjdbc.jar...
2
by: maneeshjp | last post by:
Hi to all, I have wrote a jsp-servlet program(using struts) which connects to DB2 via JDBC. I am using Tomcat5.5. JDBC driver as400thinjdbc.jar...
1
by: hal9000cr | last post by:
We are running into some problems with the execution of DB2 stored procedures when their isolation level is set to: set transaction isolation...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.