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
What is inspect in cobol ?
How do you define a variable of comp-1 and comp-2?
Have you used comp and comp-3 in your project? And how?
What are the different types of condition in cobol and write their forms.
what is the difference between COBOL2 AND COBOL390?
What are various search techniques in cobol? Explain.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Mention the guidelines to write a structured cobol program?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What is static and dynamic call in cobol?
how to access the file from prodution from changeman tool and to submit a file to production
Describe the cobol database components?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this