Skip to Content
author's profile photo Former Member
Former Member

Access to DB2 on AS400 from ABAP on AS400


I try to connect to DB2 on AS400 from ABAP on AS400.

The configuration of DBCO is done and when try connect from ABAP the system shows a dump with message "DBIF_DSQL2_CONNECTERR".

When I ejecute the program "ADBC_TEST_CONNECTION" occurs error "DBI error 16".

Someone knows this problem and how to solve?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 15, 2011 at 07:18 AM

    Hi Alvaro,

    Unfortunately, the error "DBI error 16" is a quite general error and does not provide much information at the first sight.

    For example, if configuration fields are wrong or password is wrong, you get such an error code.

    You can find more information about the cause of the problem in the dev trace file. Therefore, I should first look for it there.

    To get an overview, on how to configure a secondary connection, you can have a look at SAP Note 146624 - i5/OS: Database Multiconnect for IBM DB2 for i5/OS

    I hope this helps.

    Best regards,

    Edgardo Gildo König

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.