TOT(0 seems broke

George Simon GSimon at americanriverintl.com
Wed Mar 7 06:40:22 PST 2007



-----Original Message-----
From: filepro-list-bounces+george=worldest.com at lists.celestial.com
[mailto:filepro-list-bounces+george=worldest.com at lists.celestial.com] On
Behalf Of Kenneth Brody
Sent: Wednesday, March 07, 2007 8:25 AM
To: garyolman at bellsouth
Cc: Fplist
Subject: Re: TOT(0 seems broke

Quoting garyolman at bellsouth (Tue, 6 Mar 2007 22:10:05 -0500):

> Here is the code:
>
>
> This is output processing
>
> Ga(9,,g)
> end
> @wbrk1: ga=Tot(43)
>
> I am expecting and hoping for the total of field 43 at the first
break.
> What I get is the output of the last record seen

Which is exactly what you asked for.  You told filePro to keep a
running total of the last record in each break on the major sort
key.  What you want is a simple:

    ga(9,,g) = tot(43)

--

_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
http://mailman.celestial.com/mailman/listinfo/filepro-list

Ken, is there any advantage to using:
ga(9,,g)=tot(43) instead of ga(9,,g)=ga+43


More information about the Filepro-list mailing list