WORKING-STORAGE SECTION.
01 VAR1 COMP-2 VALUE 0.
PROCEDURE DIVISION.
MOVE 10.2115 TO VAR1.
DISPLAY 'VAR1 =' VAR1.
GOBACK.
10.2115 is stored as .10211499999999996E 02 in OS VS Cobol
10.2115 is stored as .10211500000000000E 02 in ecobol.
Any reason why?
Answer Posted / mani
comp-1 and comp-2 values can not be handled as above.
they are meant to be used for simple incrementation and i
think we can not move values like the above.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain how you can characterize tables in cobol?
how do you define single dimensional array and multidimensional array in your cobol?
Which mode is used to operate the sequential file?
what is the difference between COBOL2 AND COBOL390?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is difference between static and dynamic call in cobol?
What is the difference between external and global variables in COBOL?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Which is not true about evaluate statement
What is the difference between Call and a Link?
What is perform what is varying?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between comp and comp-3?
) how do u code after getting data?
What is Pic 9v99 Indicates in COBOL?