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 |
) How do u handle errors in BMS macro
We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)
what is jcl approach for programming?
How can you pass values from COBOL program to non-COBOL programs?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What are the different open modes available in cobol?
How may divisions are there in JCL-COBOL?
What is the purpose of Identification Division?
What is normalisation?
Hai friends why we need to read a file before re-write a record?
What is the maximum length of a field you can define using COMP-3?
4 Answers Complex System, Infosys,
I know my query will return more than one row but I don't want cursor what should I do?