File data is:
<1> PGM1 <mv> PGM2 <mv> PGM3
<2> 1000 <mv> 2000 <mv> 3000
I want to list F1, F2 & PGM.PCT to get this expected output:
>LIST DATA.FILE F1 F2 PGM.PCT
PROGRAM NAME COUNT PGM %
PGM1 1,000 .167
PGM2 2,000 .333
PGM3 3,000 .500
I thought (incorrectly) that PGM.PCT would be
(@RECORD<2,@MV> / SUM(@RECORD<2>)
Can this be done in a simple I-descriptor or am I barking up the wrong tree?
I am in UniVerse 11.3.1 on AIX
Nelson
------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------