|
On Mon, 7 Feb 2005, Forbes, Vincent wrote:
Hi Vincent,
Columns - Branch & within each o Income o Capital o Market o Count
Rows - Acc Control - Currency - Acc Type
But, the way I read it, you want something like this:
AccCtl CCY Type BR10 Inc BR10 Cap BR10 Mkt BR10 Cnt . . . BRxx Cnt ------ ---- ----- --------- -------- -------- -------- -------- ETA CDN A0 1.00 2.00 3.45 4 xxxx IPS USA 10 2.22 3.33 4.44 5 xxxx
D MAX_LINES c const(200)
D MAX_BRANCHES c const(50) D branch_t ds qualified
D Inc 13P 2 inz
D Cap 13P 2 inz
D Mkt 13P 2 inz
D Cnt 9P 0 inz D Line ds qualified
D dim(MAX_LINES)
D Ctl 3A
D CCY 3A
D Type 2A
D branch likeds(branch_t)
D inz(*likeds)
D dim(MAX_BRANCHES)Now to load data into these fields, you'd want to do something like this:
/free
for lineno = 1 to MAXLINES;
Line(lineno).Ctl = AccCtl;
Line(lineno).Ccy = Currency;
Line(lineno).Type = AcctType;for br = 1 to MAXBRANCHES;
Line(lineno).branch(br).Inc = Income;
Line(lineno).branch(br).Cap = Capital;
Line(lineno).branch(br).Mkt = Market;
Line(lineno).branch(br).Cnt = Count; endfor;
endfor;/end-free
Good Luck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.