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 you reference the fixed unblock file formats from cobol programs
What is the difference between next sentence and continue in cobol programing language?
how do you reference the rrds file formats from cobol programs
How to print 10 to 1 if the input have only 10 digit number?
What are the different open modes available in cobol?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Whats the difference between search & search ALL?
Write a program to enter and display the names of students in a class using the occurs clause.
Explain about different table spaces.
What are the different rules for performing sort operation?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What rules are to be followed while using the corresponding options?
Can we change the password using ALTER? anyone tried and changed?
What is amode(24)?
what is the use of outrecord?