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 77 level used for ?
Under which scenario you would go for a static call as opposed to dynamic call?
01 b pic +9(4) How many bytes it will take for storage???
i want to learn mainframes. i completed MCA ,whats the future of mainframes
which generation language is cobol
Write the code implementing the perform … varying.
In a COBOL program, 2 tables TABLE1 and TABLE2 are defined that are indexed by INDEX1 and INDEX2 respectively. Can we use INDEX1 with TABLE2 and INDEX2 with TABLE1?
Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be
What are the different open modes available in cobol?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How do you define a variable of comp-1 and comp-2?
What COBOL construct is the COBOL II EVALUATE meant to replace?