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
how do you reference the esds vsam file formats from cobol programs
how to refer the data field?
Write down the divisions of cobol program?
A table has two indexes defined. Which one will be used by the SEARCH?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
Explain about different table spaces.
What is the difference between PIC 9.99 and PIC9v99?
What is the difference between comp and comp-3?
what is search and searchall?what is the diffrence between them?give an best example?
) How do u handle errors in BMS macro?
What is perform what is varying?
Can we change the password using ALTER? anyone tried and changed?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Explain how you can characterize tables in cobol?
Write a program that uses move corresponding.