|
Amy, I have NO idea. This looks perfectly fine. Changing the file to
READ_WRITE shouldn't affect anything that I can think of.
Anybody else have any ideas?
Joe
> -----Original Message-----
> From: AAnuszewski@hammer.net
>
> OK. Sorry for the vagueness. Here's the problem.
>
> This code correctly prints out the value for VEOE if I open it as
> READ_ONLY. If
> I run the same routine but open the file as READ_WRITE, no record
> is found. No
> exceptions occur, but the routine never enters the if (record !=
> null) clause.
>
> VendFile.open(AS400File.READ_ONLY, 0,
> AS400File.COMMIT_LOCK_LEVEL_NONE);
> Object[] keyObj = new Object[]{new
> String(transVendorNumber2
> Record record =
> VendFile.read(keyObj,com.ibm.as400.access.KeyedFile.KEY_LE);
> if (record != null) {
> // The vendor exists. Get the VEOE for the Vendor
> and increment
> it.
> BigDecimal openEncumber =
> (BigDecimal)record.getField("VEOE");
>
> The permissions on the file are set so that my group as *all, and
> public has
> *change.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.