× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



All,

When opening a JDBC connection to the database using the toolbox driver, as
follows:

Class.forName("com.ibm.as400.access.AS400JDBCDriver").newInstance();

Properties driverProps = new Properties();
driverProps.setProperty("libraries", "M300_DVDTA");
driverProps.setProperty("user", userID);
driverProps.setProperty("password", password);

con = DriverManager.getConnection("jdbc:as400://NSBAS1", driverProps);

or

Class.forName("com.ibm.as400.access.AS400JDBCDriver").newInstance();
con = DriverManager.getConnection("jdbc:as400://NSBAS1/M300_DVDTA", userID,
password);

gives me the following error:

java.sql.SQLException: [PWS0082] 1 library(s) not added to the library list.

By trying different libraries, it seems that the underscore (_) is causing
the problem.
Is this a bug in the toolbox driver? Or some sort of character translation
problem?
The problem occurs when running on a PC client & on the iSeries.

I've tried using the native DB2 driver on the iSeries instead, this works
ok. Also I can specify the library as the default schema when using the Ops
Navigator Run SQL Scripts utility. What am I doing wrong?

Chris.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.