Here is what I have:
Set MySystem = Server.CreateObject("ADODB.Connection")
MySystem.Open "DSN=LIBRARY;UID=USERNAME;PWD=PASSWORD"
Set MyProgram = Server.CreateObject("ADODB.Command")
Set MyProgram.ActiveConnection = MySystem
MyProgram.CommandText = "{CALL LIBRARY.PROGRAM(?)}"
MyProgram.Prepared = True
MyProgram.Parameters.Append Myprogram.CreateParameter("CustomerNumber",3,1,10,1)
MyProgram.Parameters(0).Value = 1
MyProgram.Execute
Here is my error:
[IBM][Client Access Express ODBC Driver (32-bit)][DB2/400 SQL]SQL0204 - PROGRAM in LIBRARY type *N not found.
I am sure its something to do with the parameters but how to I actually get it to function correctly.
Please advise, or supply me a way that actually works.
Set MySystem = Server.CreateObject("ADODB.Connection")
MySystem.Open "DSN=LIBRARY;UID=USERNAME;PWD=PASSWORD"
Set MyProgram = Server.CreateObject("ADODB.Command")
Set MyProgram.ActiveConnection = MySystem
MyProgram.CommandText = "{CALL LIBRARY.PROGRAM(?)}"
MyProgram.Prepared = True
MyProgram.Parameters.Append Myprogram.CreateParameter("CustomerNumber",3,1,10,1)
MyProgram.Parameters(0).Value = 1
MyProgram.Execute
Here is my error:
[IBM][Client Access Express ODBC Driver (32-bit)][DB2/400 SQL]SQL0204 - PROGRAM in LIBRARY type *N not found.
I am sure its something to do with the parameters but how to I actually get it to function correctly.
Please advise, or supply me a way that actually works.