i want to store 20 digits . h will u do it in cobol ?

Answers were Sorted based on User's Feedback



i want to store 20 digits . h will u do it in cobol ?..

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

i want to store 20 digits . h will u do it in cobol ?..

Answer / vaneesh

Just write PROCESS ARITH(EXTEND) before identification
division, you can use upto 9(31).

Is This Answer Correct ?    5 Yes 0 No

i want to store 20 digits . h will u do it in cobol ?..

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

i want to store 20 digits . h will u do it in cobol ?..

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

Post New Answer

More COBOL Interview Questions

tell me about examine inspect and evaluate ?

2 Answers   CTS,


What is the difference between external and global variables in COBOL?

0 Answers   Winsol Solutions,


what is a zoned decimal data type and how it will be stored?

2 Answers   IBM,


Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?

5 Answers   IBM,


I want ALL ERROR codes in VSAM

3 Answers   American Express, TCS,






IF I mention stop run in CICS what happens?

0 Answers   IBM,


whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumeric please reply ASAP?

9 Answers  


what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?

4 Answers   IBM,


what is the basic concept of mainframe? what knowledge is needed for learn this mainframe?

4 Answers   CSE, TCS, Wipro,


How do you come out of an EVALUATE statement?

3 Answers  


I want ALL jcl ERROR cods

1 Answers  


How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?

2 Answers  


Categories