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.
Answer Posted / 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 |
Post New Answer View All Answers
Define cobol?
how do you reference the rrds file formats from cobol programs
What are 77 levels used for?
Explain how to differentiate call by context by comparing it to other calls?
what happens if parmparameter passes zero bytes to the program
explain sorting techniques in cobol program?
Why would you use find and get rather than to obtain?
What is the problem of ordered sequential files access?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Which Search verb is equivalent to PERFORM…VARYING?
How do we get current date from system with century in COBOL?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
IF I mention stop run in CICS what happens?
Write some characteristics of cobol as means of business language.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.