• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 551
  • Last Modified:

Create ODBC Connection Systematically for AS400

Hi Experts:
I have in the past asked a question as to how to systematically with the module to create an ODBS connection to SQL backend but now
I need the same approach to create odbc for the as400. Current driver installed "Client Access ODBC Driver (32-bit)"
I want to be able to set the odbc connection setting through a module. Some setting are as follows that needs to be change:

1. Data srource name
2. Description
3. AS/400 System (name of the server)
4. Naming convention "SQL naming convention (*SQL)
5. SQL default library
6. Library list
7. Connection type: "read/write (all SQL statement allowed) etc.

1 Solution
Sham HaqueSenior SAP CRM ConsultantCommented:
IBM Client Access ODBC driver:

"Driver={Client Access ODBC Driver (32-bit)};System=my_system_name;Uid=myUserName;Pwd=myPwd"

this is all you need to estabish a (ODBC) connnection to your AS400.

Alternatively, you can use OLE connections:
 IBM Client Access OLE DB provider:

Where MY_SYSTEM_NAME is the name given to the system connection in OperationsNavigator
 IBM Client Access OLE DB provider:

Where MY_SYSTEM_NAME is the name given to the System Connection, and MY_LIBRARY is the name given to the library in iSeries Navigator.

ref: http://www.connectionstrings.com
proudpaki9Author Commented:
Will this create an odbc connection in the odbc administration container??

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now