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



Thanks Larry.  I'll add this to the code and see what happens.

Brian.

-----Original Message-----
From: Larry Ducie [mailto:larry_ducie@xxxxxxxxxxx] 
Sent: Friday, October 14, 2005 5:00 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Printing a Subfile - Revisited

Hi Brian,

If you are going to read the subfile from top to bottom, and you're
always 
going to read the subfile from top to bottom, then forget using RRN -
you 
simply don't need it.

Add the SFLNXTCHG keyword in the DDS for your subfile and do NOT
condition 
it on an indicator. This means that all records written to the subfile
will 
be marked as changed. Any further updates will respect this status (as
it 
can't be changed).

You can then just write a readc loop:

If your subfile doesn't start at RRN 1 you don't care.
If you have jumps in you RRN you don't care.
If you don't know how large your subfile is you don't care.

You always start at the first record written, you'll never miss a line,
and 
you always stop at the last record written.

No worries and no joblog entries.

Just one other idea to play with. :-)

Cheers

Larry Ducie



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.