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



To recap previous work: I've got a Java program that monitors a *DTAQ for
a "wakeup signal" to poll an event file for new records. That much works,
both in a simplified test program we have on one box (V4R4), going through
host optimizations, and in the still-under-development production program,
accessing a completely separate box (V4R5) through Host Servers.

Now, I'm using a key from the event-file record to retrieve a record from
a keyed file:

    QSYSObjectPathName fooName = new QSYSObjectPathName("BOZBAR", "FOO",
"FILE");
    KeyedFile foo = new KeyedFile(as400, foo.getPath());
    AS400FileRecordDescription fooDes = new
AS400FileRecordDescription(as400, fooName.getPath());
    . . .
    foo.setRecordFormat(fooDes.retrieveRecordFormat()[0]);
    . . .
    singleKey[0] = (BigDecimal)(eventData.getField("BIKEY"));
    . . .
    fooData = foo.read(singleKey);
    for (int i = 0; i < fooData.getNumberOfFields(); i++)
System.out.println(fooData.getField(i).toString());

(The names have been changed to protect the innocent)

It works in the simplified test program, printing out a list of the field
values, but not in the still-under-development test program (it doesn't
appear to be blowing up; it just gets NOTHING).

--
JHHL



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.