× 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.



Hi
I figured that i wont be able to pass result set to
java program from RPG, and so what i am doing is
passing a library list to java program from RPG which
i use to in JDBC properties while creating my
connection.
But this is kind of hardcoding as i cannot chnage the
library list on fly, unless i keep it in some data
area or configuration file, and change it when user is
using different set of libraris..
but anyway have to live with it for now

Ashish
--- "McCallion, Martin" <martin.mccallion@xxxxxxxxx>
wrote:
> RPG has no concept of ResultSet.  I don't think an
> SQL cursor is the
> same thing, so even if you could somehow pass it to
> the Java class, it
> wouldn't be what the class was expecting.  Barbara's
> suggestion was a
> way to give you a result set object within an RPG
> program; still,
> though, you wouldn't be able to do much with it in
> the RPG, except pass
> it on to another Java class.
> 
> I think you are trying to do incompatible things,
> really.  However, your
> real problem appears to be the library list one, so
> that's probably the
> one you should try to address.
> 
> > I am trying to do this because when i create a
> JDBC
> > connection in java program it uses the library
> list of
> > the user job description and not of the Job which
> is
> > calling it, in other words if the Library is LIB1
> in
> > the job which is calling it, and if in user job
> > description of user profile if the Library is
> LIB2,
> > then the connection as LIB2 instead of LIB1
> 
> Part of the JDBC connection string is "database"
> which is a library in
> iSeries terms:
> jdbc:as400://iSeries-name/database-name.
> 
> Plus the IBM JDBC drivers have an optional parameter
> for "libraries"
> which, if I recall correctly, allows you to specify
> a comma-separated
> list of libraries.  The Connection should, I
> believe, treat it similarly
> to a library list.
> 
> HTH.
> 
> Cheers,
> 
> Martin.
> 
> -- 
> Martin McCallion
> Senior Technical Consultant
> Misys Wholesale Banking Systems
> 1 St George's Road, London, SW19 4DR, UK
> T +44 (0)20 8486 1951
> F +44 (0) 20 8947 3373
> martin.mccallion@xxxxxxxxx
> www.misys.com
> 
> This email and any attachments have been scanned for
> known viruses using
> multiple scanners. We believe that this email and
> any attachments are
> virus free, however the recipient must take full
> responsibility for
> virus checking. This email message is intended for
> the named recipient
> only. It may be privileged and/or confidential. If
> you are not the
> intended named recipient of this email then you
> should not copy it or
> use it for any purpose, nor disclose its contents to
> any other person.
> You should contact the Misys Banking and Securities
> Division as shown
> below so that we can take appropriate action at no
> cost to yourself. 
> 
> Misys Banking and Securities Division, 1 St George's
> Road, Wimbledon,
> London, SW19 4DR, England. Email:
> banking.postmaster@xxxxxxxxxx Tel: +44
> (0) 20 8879 1188 Fax: +44 (0) 20 8947 3373 
> _______________________________________________
> This is the Java Programming on and around the
> iSeries / AS400 (JAVA400-L) mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/java400-l.
> 


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.