What compiler are you using (the first line of compiler output will tell you)? And, note that you must use a hexadecimal display to properly see the displayed values -- character display will not show the values. It is also interesting that several of your variables have COMP3 as part of their name, yet you don't put COMP-3 on them.
Joined: 06 Jun 2008 Posts: 8344 Location: Dubuque, Iowa, USA
At this point, VS COBOL II (which is what I assume you meant by "COBOL II") is approaching 30 years of age and is FOUR generations behind the current compiler Enterprise COBOL for z/OS and OS/390. Fortunately, the COBOL features are pretty much the same although you are missing out on the "newer" (in some cases, 20 years old at this point) features that can be used.
I was able to account for all the other results, but WS-COMP3-GRP-VAR & WS-COMP3-ELEM-VAR is beyond my understanding.(I am not able to reason out why % will be displayed)
Tusha, the contents of the files are the binary result of the calculation in a floating point format. You need to look at the hexadecimal output in order to see the binary values. The characters displayed are dependent on what code pages are used at your installation, and poosibly also in your terminal emulator setup.