|
James, I doubt this applies to MI, but in RPGLE I'd use the special value*START. In general, this is why I avoid file I/O by RRN.
also happens in an RPG test program that approximates the
-Eric
-----Original Message-----
This is really about an MI program (see the thread on the MI list), but it
point-of-failure in the MI, so maybe somebody who's here, but not on theMI list might have an insight.
program-described mode, as that's essentially what happens in the
It seems that with this code (intentionally opening the file in
original MI program):DDS, the SETLL comes back with an error, but the READ still finds the
FHPADLPUA IF F 1243 DISK121314
D RECORD DS 1243
C 1 SETLL HPADLPUA
C READ HPADLPUA RECORD
if I run it on a DDS LF, and RRN 1 is omitted by a SELECT clause in the
first record that satisfies the SELECT.the same data, the READ fails, evidently from the file being left at an
But if I run an otherwise identical program on an equivalent SQL VIEW of
undefined position.SQL VIEW at an undefined position.
SETGT (and this surprised me) also returned with an error, and left the
found, to deal with this?
Anybody know of a way, short of iteratively SETLLing until a record is
As an Amazon Associate we earn from qualifying purchases.
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.