+ Reply to Thread
Results 1 to 8 of 8

Thread: Calling AS400 Stored Procedures from VB6

  1. #1
    Guest.Visitor Guest

    Default Calling AS400 Stored Procedures from VB6

    Instead using adParamOutput use adReturnValue. Sky

  2. #2
    Guest.Visitor Guest

    Default Calling AS400 Stored Procedures from VB6

    I tried that (actually, I think it's adParamReturnValue), but I am getting the same error.

  3. #3
    Guest.Visitor Guest

    Default Calling AS400 Stored Procedures from VB6

    cmAS400.Parameters("CustID") = quoteCust.value cmAS400.Parameters("ProdID") = productID.value cmAS400.Parameters("Status") = "" Sky

  4. #4
    Guest.Visitor Guest

    Default Calling AS400 Stored Procedures from VB6

    I tried that, and I got a compile error "Invalid Qualifier".

  5. #5
    Guest.Visitor Guest

    Default Calling AS400 Stored Procedures from VB6

    Try to debug your program and see if quoteCust and productID are not blanks. otherwise declare your variable public or global if it declared on different module. Your stored procedure must also have the same type as your pass parameters. Sky

  6. #6
    Guest.Visitor Guest

    Default Calling AS400 Stored Procedures from VB6

    I did a debug, and the values of the 2 input parameters both have a value when I make the call. I have them defined as String in the VB App, and as Character in the Stored Procedure definition on the AS400. I assume these are the same (there is no String on the AS400). Also, everything is being done in one subroutine, so I don't think I need to make the variables Public, but let me know if you think otherwise.

  7. #7
    Guest.Visitor Guest

    Default Calling AS400 Stored Procedures from VB6

    I am trying to call an AS400 stored procedure from VB6. This is a stored procedure that accepts 2 input parameters, calls an AS400 CL program, and returns 1 parameter. I have done this exact same thing from an ASP page, and it works fine, but I am having trouble doing it from VB. (See code included.) When I do the Execute, I receive the following error: "Multiple Step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done." Does anybody know what I am doing wrong?
    Code

  8. #8

    Default Calling AS400 Stored Procedures from VB6

    If your Stored Procedure is expecting parameters you may either hard code them in your ADO application or supply them dynamically during run time. If you decide to dynamically pass the parameters, use prepared statements and parameter markers in your program.

+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 09-10-2004, 11:16 AM
  2. Stored Procedures
    By Guest.Visitor in forum Visual Basic
    Replies: 3
    Last Post: 09-09-2002, 07:02 AM
  3. Stored Procedures on the 400 for use in the Web
    By Guest.Visitor in forum Application Software
    Replies: 1
    Last Post: 10-05-2000, 03:40 PM
  4. Calling Procedures In CLLE
    By Guest.Visitor in forum Programming
    Replies: 6
    Last Post: 08-09-1999, 07:46 AM
  5. Calling stored procedures using client acces ODBC driver
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts