Consider the following code:
77 A PIC 99V99 VALUE 55.35
77 B PIC 99V999 VALUE 32.754
ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!"
What will be the result ?
(a) A=88.10, B=32.754
(b) A=87.00 B=32.754
(c) A=87.10 B=32.754
(d) ERROR!!! will be DISPLAYed on the screen.
Answers were Sorted based on User's Feedback
Answer / milind
The previous answer is wrong.
The correct answer is (a) 88.10.
| Is This Answer Correct ? | 18 Yes | 4 No |
Answer / g venkatesh
Answer is D.
as data name length is 9(2).9(2) after the operation
the value will get over flow.
it will routed to on size error display
| Is This Answer Correct ? | 4 Yes | 1 No |
what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C
What is the difference between COMP & COMP-3 ?
how to check whether the open command of a sequential file is successful? or not?
what will happen if pass values more than 100 using PARM parameter?
What rules are to be followed while using the corresponding options?
how do you reference the esds vsam file formats from cobol programs
how will u find out 3rd week's 2nd day using occurs ?
what is a zoned decimal data type and how it will be stored?
How may divisions are there in JCL-COBOL?
What are the cobol coding sheets?
What is the different between index and subscript?
Whtz the specialty of 77 level number ?