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



> I built the table referred to earlier, as an alt. array.
> THe first part has the year/mo and the second part
> has the total pieces shipped in this year/mo.

My midrange bias is undoubtedly showing, but I wouldn't do this at all.  I
would read the base file (sorted appropriately either by LF, Addrout,
Tagalong or OPNQRYF) and take level breaks.  If you really and truly only
need totals for a particular date range, SETLL/READE on the appropriate LF-
or OPNQRYF-sorted data will certainly get you where you need to be.  SQL
makes this an easy enough proposition because you can specifically ask for
the total of the group in your date range but you might not have access to
SQL if your boss restricts you to RPG III.

In the old days, if we needed to have a separate summary in THIS program,
we'd write another program to process the data (in the appropriate order)
and place the results in a work file.  THIS program can then read that work
file (which can/should be keyed in the order you want).
  --buck




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.