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

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases

6 Answers   Patni,


Write the syntax of a two dimensional array?

8 Answers   Honeywell, Xansa,


If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.

3 Answers   CTS,


What is the difference between PIC 9.99 and 9v99?

7 Answers  


What will happen if we generate GDG (+2) version without generating (+1) version?

2 Answers   IBM, T systems,






How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

0 Answers  


In an array processing what is the thing that can be done by using subscripts but not by using index

4 Answers   JPMorgan Chase,


What do you understand by psb and acb?

0 Answers  


What is the difference between static call & Dynamic call?

2 Answers   CSC, TCS,


without performing any operations on a file how can i know whether it contains data or not

2 Answers  


if a=b how the flow will complete??? perform test through test-exit. perform activa through activa-exit. test. if a=b then next sentence else move a to c. test-exit. exit. activa. -- -- activa-exit. exit.

1 Answers   IBM,


How do you do in-line PERFORM?

4 Answers   Accenture,


Categories