study the following
01 A PIC 99V0 VALUE 5
01 B PIC 9V9 VALUE 6
01 C PIC 99V9 VALUE 2.5
01 D PIC 99 VALUE 3
COMPUTE A ROUNDED B C = A+B*C/D
ON SIZE ERROR PERFORM PRINT-ERROR
the comments of A.B.C after execution of the above
statement are
a.A=10 B=0 C=10
b.A=10 B=9.9 C=9.9
c.A=10 B=0 C=9.9
d.A=10 B=6 C=10
Answer Posted / kamesh
5+6*2.5 div 3=10 so a=10,b=0 bcz truncated 1.and c= 10.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
how do you define single dimensional array and multidimensional array in your cobol?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
how do you reference the ksds vsam file formats from cobol programs
How can you get the ksds file records into your cobol program?
What are the different types of condition in cobol and write their forms.
What is the difference between PIC 9.99 and 9v99 in COBOL?
How do you reference the fixed block file formats from cobol programs
When is inspect verb is used in cobol?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What are various search techniques in cobol? Explain.
What is redefines clause in COBOL?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?