01 A PIC 9.
01 B PIC 99V1.
01 C PIC 99.
MOVE 1 TO A.
MOVE 0.2 TO B.
COMPUTE C ROUNDED TO 3/3 + A.
Answers were Sorted based on User's Feedback
Answer / narendra kumar
The correct answer is 02.
Compute C rounded = 3/3 + A.
Result will be 02.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the input procedure and output procedure?
How COBOL helps Mainframe to maintain large records ???
How to Convert 2010/02/11 to m/dd/yyy.. with string and without string if any other method... code
Explain the output procedure?
What is comp?
seqence numbers in cobol
Trying to help a friend... How do you code screen I/O without a DDS? I know it can be done, because for a short time, I worked for a company that did it. It was just too long ago for me to remember what was involved.
Define redefine?
I like to know if possible to use %TRIM or any statement with prefiv "%" like RPG ile programs. thanks
Explain the difference between comp & comp-3?
Arrays in COBOL/400
How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC * EVALUATE TRUE WHEN SQLCODE = +000 MOVE WS-COUNT TO Copybook field WHEN SQLCODE = +100 MOVE ZEROES TO Copybook field