Get library list in Java

0 pts.
Tags:
Application development
AS/400
When using the JDBC driver to access files in various databases I would like to use the current library list for the job rather than the user's jod description... i.e. How can I set the library list to use the current library list rather than the user's job description. e.g. So that regardless of whether the program is in Development, Integration or User Testing enviroments it will use the correct library list... Example of my current code to connect to database... Properties properties = new Properties (); properties.put("user", "user"); properties.put("password", "password"); properties.put("naming", "system"); properties.put("libraries", "*LIBL"); try { Class.forName("com.ibm.db2.jdbc.app.DB2Driver"); connection = DriverManager.getConnection("jdbc:db2:*local", properties);
ASKED: May 31, 2006  3:38 AM
UPDATED: November 21, 2010  11:50 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

I haven’t been able to find an answer to your specific question, but why not just replace “*LIBL” with the libraries you want in your library list?

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gareth279
    Hi, I could replace *LIBL with the libraries I want, and that does work, but I want the program to be able to reconise what the current library list is as in my enviroment the library list can be different for different sets of data. I.e. I want to be able to run the same program over different enviroments... E.g. send an email with data from a specific file which is the same file, but stored in different libraries, for different clients. Cheers G
    0 pointsBadges:
    report
  • TomLiotta
    I want the program to be able to reconise what the current library list is as in my enviroment the library list can be different for different sets of data. If different environments use different sets of libraries, it doesn't make much sense to have them all using the same job description with the same library lists. A job description is essentially the only system facility that holds library lists except for the QUSRLIBL system value and for running jobs. A major purpose of a *JOBD is to deliver a library list. They're small objects that are easy to maintain. Create more of them and use them. Why look for a programming solution for something already provided by the system? Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following