Yes, That is the desired behavior. The records, more often than not, will be edited. In that scenario it is just a whole lot easier to close the cursor and reset everything. The cursor is closed when ProgB returns to ProgA. ProgA's subfile must be rewritten to display current data, so starting over is easiest, fastest and most robust. In my opinion. Additionally, in this application there is another file involved that is also updated so refilling the subfiles makes sense.

On 8/10/2016 12:53 PM, dlclark@xxxxxxxxxxxxxxxx wrote:
"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 08/10/2016 01:39:49
PM:
The second program processes the same file, in the same order.
Therefore on the second program's first cycle, using the RRN number as
the relative number in the cursor, i get the correct record.

On the first cycle, yes. Are you saying that the cursor gets
closed each time so that the subfile rrn always works on the first time
into the cursor?

Sincerely,

Dave Clark


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.