i want to store 20 digits . h will u do it in cobol ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nitesh sethi
Use ARiTH(EXTEND) as compile option and you can extend
numeric field upto 30 digits
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / yogesh
U can use either tables(ARRAYS) or can store those values
as elementary data items
| Is This Answer Correct ? | 0 Yes | 1 No |
What was removed from COBOL in the COBOL II implementation?
What are the different ways to run a COBOL DB2 program using JCL?
How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?
What COBOL construct is the COBOL II EVALUATE meant to replace?
Why we need to use redefine clause when we can define the variable seperately... what is actual need....
Have you used comp and comp-3 in your project? And how?
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
What type of Call you would use if you don;t want the control back to the calling program?
What R 2 of the common forms of the EVALUATE STATEMENT ?
hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?
what happens when a copybook variables are declared using include statement ?