If you set up an I-Type that calls a subroutine with a named common where
you keep adding the field you want the running total on into the named
common variable and use the named common value as your answer it will give
you a running total.
0001: I
0002: SUBR("RUNBABY",ANS)
...
0001: SUBROUTINE RUNBABY(RUNNING.TOTAL)
0002: COM /RUNRUN/ RUNNING.TOTAL
0003: RUNNING.TOTAL += @RECORD<nn>
0004: END
I haven't done this for a while, but I think that is the syntax.
The problem with this is that you have to create another routine to clearout
the named common if you want to run the list more than once during a
session. I used to do mine in a Paragraph and have the clear out routine as
a part of the Paragraph just before the list statement.
hth
Tom Dodds
[EMAIL PROTECTED]
630-235-2975
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anthony Dzikiewicz
Sent: Tuesday, October 25, 2005 11:51 AM
To: [email protected]
Subject: [U2] Running Totals Universe
Is there a way to display a running total in Universe within LIST
RECORD....... ?
I am looking thru the docs and I came across TRANSPORT. At first, it
looked like the "ticket". After giving it a try, I have come to the
conclusion that it is not. Then I started to wonder what TRANSPORT
would ever be used for ?
If anyone knows any tricks, please tell. In the meantime, I am doing a
quick program to do what I need.
Thanks
Anthony
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/