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


  • Subject: Re: Java questions
  • From: "Brad Grier" <grier@xxxxxxxxx>
  • Date: Mon, 21 Dec 1998 13:21:56 -0600

Because the KeyedFile class is a subclass of the AS400File class, you can
use the methods of AS400File as well. For example: To read the last record
in a file, use the AS400File readLast() method. Use
positionCursorAfterLast() to set the file cursor after the last record.
There are other methods available as well.

The Java applications I've written typically use JDBC SQL or stored
procedures on the AS/400. I've recently started using the Record Level
Access classes and there are some limitations (for example, some of the
record level classes have a problem with the JIT compiler that ships with
Sun's JDK). Luckily, Java makes it easy to work around these problems.


Brad Grier


Shameless Plug:
Free Beta:
Surveyor/400 - A Java-based AS/400 File Explorer
www.linomasoftware.com

-----Original Message-----
From: DeSarro Frank <DeSarFra@mail.divintech.com>
To: java400-l@midrange.com <java400-l@midrange.com>
Date: Monday, December 21, 1998 11:07 AM
Subject: Java questions


> I have two questions.  First, there seems to be very little activity on
>this java mail list. Could anyone who subscribes to this list identify
>yourself.  I promise I won't start mailing you questions.  I just want to
>find out how many people are out there listening.
> Second, if anyone is trying to develop applications using the AS/400
>Toolbox for Java, I'm disappointed by the methods provided for the
>KeyedFile class.  Does anyone have a different opinion? The class does
>not seem to provide the capabilities that would be useful for positioning
>and reading through a keyed file.  I know the class provides about a
>dozen methods for accessing records, but when I try to actually start
>using them in a real application, I find them to be lacking.  As an
>example, there does not seem to be a method to simply position you to the
>end of a file or to read the last record in a file. You can use the
>methods provided to attempt to simulate these functions, but I find
>myself starting to need to make assumptions about the data to easily
>accomplish these tasks and others.  Any comments or suggestions would be
>greatly appreciated. Thanks.
>
>+---
>| This is the Midrange System Mailing List!
>| To submit a new message, send your mail to JAVA400-L@midrange.com.
>| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
>| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner/operator:
david@midrange.com
>+---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


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.