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


Please Help Members By Posting Answers For Below Questions

Explain what you understand by passing by value.

691


What is the difference between Call and a Link?

694


how do you reference the ksds vsam file formats from cobol programs

652


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1019


What are different data types in cobol?

685






What are the access modes of START statement?

716


What are 77 levels used for?

654


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


What is difference between static and dynamic call in cobol?

770


What are literals?

623


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

672


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2725


What guidelines should be followed to write a structured cobol prgm?

665


How do u write test cases?

1632


What is cobol?

739