by NicC » Tue Dec 20, 2011 1:55 pm
Why do you think that the output could be wrong? Do you think that the computer could have made a mistake?
If you were expecting 11,22 and 33 in plain 'English' then you need to convert your data from FLOAT BIN to PIC'9999' (however many 9s you need/want). You also, probably, had DATA CONVERSION WILL BE DONE BY SUBROUTINE CALL messages. Although this is OK, for performance you should read the data into PIC variables, move to FIXED (or FLOAT) DEC fields and then to FLOAT BIN. Reverse the process after your calculation to get displayable values. You did not need to go to FLOAT BIN - FIXED DEC would have been fine.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic