Thanks rexxhead!
I had to make an adjustment in the code
I was getting 'bad arithmetic conversion' on
do zz= 1 to stem.0
I changed stem.0 to line.0 and it worked ok
thank you very much
rexxjunior
total = 0
do zz = 1 to stem.0 <<< changed to line.0
parse var line.zz amt ...
Help ! I need to add up numbers in a mainframe PS file.
I get the value of the last number + the same last number (40 +40 = 80) instead of the total of all the numbers.
can anyone show me how to do this the correct way?
here is my code and the sample of the file I am reading
"EXECIO 0...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.