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
i want a program using by if, evaluate , string, unstring, perform, occurs?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What are the different rules of SORT operation?
Explain how to differentiate call by context by comparing it to other calls?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
How do you define a variable of comp-1 and comp-2?
Discuss about changing dataset name in proc.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
how do you reference the variable unblock file formats from cobol programs
Can a Search can be done on a table with or without Index?
what is s000 u4087 error? please give the all error codes in cobol,jcl.