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



Well...crud. That's what I was afraid of that it was something like that.

Its use is in a central function of the "system" I am working on that is
fairly integral and used all the time, mixed into a really really long
RPG-II style program. I think it will just be easier now and for future
maintenance, if I rewrite the functionality into a new program for all new
useages, rather than try to trace the logic cycle breaks and other crap in
there that drives me nuts to look at. Then the old stuff can continue to
use that mess since it does work for what it was intended for, and I can
better control the output from the new stuff.

It would be nice if IBM would come out with the CVTRPGMRCL (Convert RPG II
Code Into RPGILE Using A Miracle) command to fix old stuff like this.

Thanks All




-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Schollenberger
Sent: Tuesday, October 16, 2007 4:38 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: RPG II question

Record address files were typically produced by #GSORT on S/34 or S/36
(FMTDTA equivalent) by defining the sort specification as HSORTA rather
than HSORTR (or HSORTRS).

Only control fields were included in the sort specifications; no data
(FDC) fields.

#GSORT (or FMTDTA) creates a file containing the binary RRNOs of the
records included in the sort and the ordering applied by the sort. The
record address file is used to process the primary file by RRNO to
present the data in the selected/sorted order.

As previously mentioned, record address files could be used as a limits
file also.
I didn't do much of this, but I think you created one record in the file
that contained the low and high values of the keys you wanted to process
and the primary file would be read and only present records within those
key limits.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.