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 / jennifer victor
comp-2 is pre defined that it stores all the data values in hexadecimal format, using 8 bytes, hence its displayed in hexa format.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between structured cobol programming and object alternativelyiented cobol?
What are the different data types in cobol?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
what is search and searchall?what is the diffrence between them?give an best example?
Which is not true about evaluate statement
i want a program using by if, evaluate , string, unstring, perform, occurs?
What are 77 levels used for?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is amode(31)
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc