From Windows:
Go into Admin Tools > Data Sources (ODBC)
Select the System DSN Tab and Add a new System Data Source
Select the ODBC driver used to connect to the AS400
Give it a Data Source Name, AS400 System Name, Library List (*USRLIBL)
From a c# program:
Code:
using System.Data.Odbc; String connectionString = "Dsn=myAS400dsn;uid=myUser;pwd=myPassword";
Leave a comment: