i want to store 20 digits . h will u do it in cobol ?
Answer Posted / paray2x
Most of the modern compilers support upto 31 digits. Try
compiling your program and you'll be able to find out.
Else, if your requirement is only to store and not do any
computation, you can have a group variable.
05 My-number.
10 My-number-part1 pic 9(15).
10 My-number-part2 pic 9(5).
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
How do we get current date from system with century in COBOL?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
In COBOL programming, what is PERFORM? What is VARYING?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is rmode(24)
How do you differentiate between cobol and cobol-ii?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
what is the use of outrecord?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the difference between Call and a Link?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
) how do u code after getting data?