× 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 Eddie,

> Is there a process of exposing legacy Iseries Queries in Java?

    I don't think anyone will be able to give a good answer without more
information like: from a QRYDFN or ...?  Do you want to process the report,
the data - what is the output needed?

    The simplest way to get to the output is to RUNQRY with output to disk,
then read the file with the Java program.  That's probably unacceptable,
unless you can live with a snapshot, because of the process, write, read,
process time.

    RUNQRY only offers output to the display, printer or to a file.  Query
Management allows embedding in native ( non-Java ) programs, but
"does not pass back data to the program", so in the sense of getting and
processing the data, queries aren't "exposed" to any language on the '400.

    It is possible to convert QRYDFN *selections*, including joins and on
the fly field defintions to SQL - although they may be incomplete - and run
that from a Java app to get and process the data.  While in some sense it is
possible to get the report formatting, the meaning of the formatting data is
not openly documented by IBM, to my knowledge.


                                                         Joe Sam

Joe Sam Shirah -        http://www.conceptgo.com
conceptGO         -        Consulting/Development/Outsourcing
Java Filter Forum:       http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International?    http://www.jguru.com/faq/I18N
Que Java400?             http://www.jguru.com/faq/Java400


----- Original Message -----
From: "Urfer, Eddie" <UrferE@xxxxxxxxxxxxxx>
To: <JAVA400-L@xxxxxxxxxxxx>
Sent: Monday, July 12, 2004 12:01 PM
Subject: Exposing existing ISeries Queries in JAVA


>
>
> Is there a process of exposing legacy Iseries Queries in Java?
>
>
> Thanks
>
> Eddie Urfer
>




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.