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
What do you understand by psb and acb?
Can we redefine the field of x(200) to less than 200?
What are the access modes of START statement?
What is the local-storage section?
What is the utilization of copybook in cobol?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Difference between cobol and cobol-ii?
How do get the result of your program directly on your pc?
Write down the divisions of cobol program?
Explain the configuration section of a cobol program with examples of syntax.
how do you reference the variable unblock file formats from cobol programs
Can you please let me know the centre name of INS certification in Kolkata.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Name some of the examples of COBOl 11?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?