There is a variable with value 19446. Requirement is to
convert it to 194.46. I tried it by doing divide by 100 and
my receiving field data type is 9(03)v99. But the output is
194. I am not getting the decimal value. Could anyone pls
let me know how to get this done?
Answer Posted / kiro
When COBOL does a divide it uses the format of the item
which in this case is integer only that is why the
fractional part is missing. You need to move the value
19446 to a 9(5)v99 item first and then do the divide using
the 9(5)v99 item.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Have you used comp and comp-3 in your project? And how?
Describe the cobol database components?
What the difference is between continue and next sentence?
What rules are followed by the search verb.
i need a small 3d program using inline and outline.
What is length is cobol?
How are the next sentence and continue different from each other?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
State the various causes of s0c1, s0c5 and s0c7.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What is a scope terminator give example?
Define static linking and dynamic linking.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?