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
Write a program to enter and display the names of students in a class using the occurs clause.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Why did you choose to work with ibm mainframe cobol programming?
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?
How you can read the file from bottom?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the difference between binary search and sequential search?
What is the local-storage section?
Explain how you can characterize tables in cobol?
Explain the configuration section of a cobol program with examples of syntax.
How do you reference the following file formats from cobol programs?
What are different data types in cobol?
What is link edit in cobol?
Whats the difference between search & search ALL?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic