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 are the different rules of SORT operation?
How do you define a variable of comp-1 and comp-2?
how do you reference the variable block file formats from cobol programs
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Write the code to count the sum of n natural numbers.
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...)
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is the difference between next sentence and continue in cobol programing language?
what is the use of outrecord?
What is difference between static and dynamic call in cobol?
Which mode is used to operate the sequential file?
Which Search verb is equivalent to PERFORM…VARYING?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is the Purpose of Pointer in the string?
How can you get the ksds file records into your cobol program?