do You care about the result or about the process ?
Did You run the snippet posted by Kolusu ?
it gives exactly the output You asked for, the last <explanation> just confuses things !
here is another snippet to show You also the SHARES*PRICES calculations
000005 //ICE EXEC PGM=SORT
000006 //SYSPRINT DD SYSOUT=*
000007 //SYSOUT DD SYSOUT=*
000008 //*
000009 //SYMNAMES DD *
000010 PRICES,01,6,ZD
000011 DIGITS,07,2,ZD
000012 SHARES,10,5,ZD
000013 VALUES,20,8,ZD
000014 //SORTIN DD *
000015 00098302 00010
000016 00107503 00011
000017 00056000 00012
000018 00034501 00013
000019 //SORTOUT DD SYSOUT=*,
000020 // DCB=(RECFM=FB,LRECL=80)
000021 //SYSIN DD *
000022 SORT FIELDS=COPY
000023 INREC OVERLAY=(20:PRICES,MUL,SHARES,TO=ZD,LENGTH=8)
000024 OUTREC IFTHEN=(WHEN=(DIGITS,EQ,0),
000025 OVERLAY=(30:PRICES,EDIT=(TTTTTTT),
000026 40:VALUES,EDIT=(TTTTTTTTTTT))),
000027 IFTHEN=(WHEN=(DIGITS,EQ,1),
000028 OVERLAY=(30:PRICES,EDIT=(TTTTT.T),
000029 40:VALUES,EDIT=(TTTTTTTTT.T))),
000030 IFTHEN=(WHEN=(DIGITS,EQ,2),
000031 OVERLAY=(30:PRICES,EDIT=(TTTT.TT),
000032 40:VALUES,EDIT=(TTTTTTTT.TT))),
000033 IFTHEN=(WHEN=(DIGITS,EQ,3),
000034 OVERLAY=(30:PRICES,EDIT=(TTT.TTT),
000035 40:VALUES,EDIT=(TTTTTTT.TTT)))
********************************* TOP OF DATA **********************************
00098302 00010 00009830 0009.83 00000098.30
00107503 00011 00011825 001.075 0000011.825
00056000 00012 00006720 0000560 00000006720
00034501 00013 00004485 00034.5 000000448.5
******************************** BOTTOM OF DATA ********************************
I added at pos 10,5 the number of shares
the output shows the raw multiplication result the price edited the total value edited
if this is not what You are asking for
then You will have to do a better job in explaining,
and.... if You stick to doing using exponentiation, You will have to resort to a different tool
as usual... Kolusu might show a better solution