|
There are two pieces of code. One is the part that defines the records,
much like the DDS for externally described data structures:
package data;
Record OrderDetail type SQLRecord
OHCUST decimal(8);
OHSTATUS string;
OHORDER decimal(8);
OHAMOUNT decimal(11,2);
end
Record CategoryTotals type SQLRecord
Category String {column="Category"};
Total decimal(11,2) {column="Total"};
end
That defines two records, one for the list and one for the totals. And
you
can of course reuse those records over and over again in other
applications,
just the same as you would an EDS. The job of your program then is simply
to create arrays of that data. The EGL code to populate those totals:
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.