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 |
Explain about Redefines cluse?
What is the meaning of 'TALLING' verb in cobol?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
what is the maximum error code in mainframe
Hai friends why we need to read a file before re-write a record?
waht is inspect verb? where it can be in real time?
how to check whether the open command of a sequential file is successful? or not?
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
What is wrong with the following data declaration? 01 W-DATE PIC X(6). 05 DD PIC 99. 05 MM PIC 99. 05 YY PIC 99. (a) Nothing is wrong. (b) Under W-DATE all level 05 items are having a PIC 99 but level 01 has PIC X(6). (c) PIC can't be specified for a group item. (d) DD, MM, and YY are invalid datanames.
Explain the configuration section of a cobol program with examples of syntax.
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
What are the functions like c or c++ in cobol?