Re: [U2] FW: Running total from UniData dict

2009-07-23 Thread Kebbon Irwin
in the 17 years I have been working with UniData. Cheers, Kebbon > Date: Thu, 23 Jul 2009 10:17:08 -0700 > From: stevenson.c...@gmail.com > To: u2-users@listserver.u2ug.org > Subject: Re: [U2] FW: Running total from UniData dict > > As long as we're on the sub

Re: [U2] FW: Running total from UniData dict

2009-07-23 Thread Charles Stevenson
As long as we're on the subject, how about a running average? [running average] = [running total] / [number of items so far] @NI is the item counter as the LIST command proceeds. Using any of the methods discussed so far to get the running total, divide by @NI: DICT ORDER.DETAIL RUNAVG

Re: [U2] FW: Running total from UniData dict

2009-07-23 Thread Martin Phillips
Hi Chuck, I take it QM does not support this use of the @n buffers, then? If I may change the subject slightly, how about nested compound I-descriptors? We have the @n variables but they are local to the specific I-type expression and hence don't persist from one evaluation to the next. We

Re: [U2] FW: Running total from UniData dict

2009-07-23 Thread Charles Stevenson
This & it's ilk have always been an "Undocumented Feature" in both PI & UV. 001: I 002: @1...@record<8> If it ever stops working, The pitchforks are coming out. Recent versions of the documentation have added a bit of a disclaimer, rather than embracing the feature: Note: If you use @ in the

Re: [U2] FW: Running total from UniData dict

2009-07-23 Thread Brian Leach
5 16 47 1 17 49 2 18 52 3 Brian > -Original Message- > From: u2-users-boun...@listserver.u2ug.org > [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of > Kebbon Irwin > Sent: 23 July 2009 16:22 > To: u2-users@lists

Re: [U2] FW: Running total from UniData dict

2009-07-23 Thread David A. Green
2009 8:22 AM To: u2-users@listserver.u2ug.org Subject: [U2] FW: Running total from UniData dict I read this with great interest as I have an identical requirement. However, I use Unidata and this technique does not seem to work, in either ECLTYPE. Does anybody have a UDT solution? Cheers, Kebbon

Re: [U2] FW: Running total from UniData dict

2009-07-23 Thread Charles Stevenson
Yes, Kebbon. Years ago, I hit this difference when contemplating a PI to UD migration. My fix isn't not very pretty to read, but it made conversion easier. If I didn't have the construct to convert, I don't know that I would use it, except that it's a nice bit of functionality. Off the top

Re: [U2] FW: Running total from UniData dict

2009-07-23 Thread Edward Brown
g.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Martin Phillips Sent: 23 July 2009 16:45 To: U2 Users List Subject: Re: [U2] FW: Running total from UniData dict Hi Kebbon, > I read this with great interest as I have an identical requirement. > However, > I use Unidata and this

Re: [U2] FW: Running total from UniData dict

2009-07-23 Thread Martin Phillips
Hi Kebbon, I read this with great interest as I have an identical requirement. However, I use Unidata and this technique does not seem to work, in either ECLTYPE. Does anybody have a UDT solution? 0001: I 0002: @1...@record<8> 0003: MD2 0004: RUNNING TOT 0005: 10R I was quite surprised that

[U2] FW: Running total from UniData dict

2009-07-23 Thread Kebbon Irwin
I read this with great interest as I have an identical requirement. However, I use Unidata and this technique does not seem to work, in either ECLTYPE. Does anybody have a UDT solution? Cheers, Kebbon > From: bernard.lu...@pentanasolutions.com > To: u2-users@listserver.u2ug.org > Date: Tue