What is the maximum data length for Numeric DataType ?

Answers were Sorted based on User's Feedback



What is the maximum data length for Numeric DataType ?..

Answer / g.naveen

18 is Maximum Data length for Numeric Data Type.

Is This Answer Correct ?    24 Yes 0 No

What is the maximum data length for Numeric DataType ?..

Answer / shekh

BY USING COMPILER OPTION MATH, IT WILL INCREASE THE VARIABLE CAPACITY UP TO 31 DIGITS.

Is This Answer Correct ?    5 Yes 0 No

What is the maximum data length for Numeric DataType ?..

Answer / muttaiah

The default is 18..which means the compiler option will be
Arith(compat)..
If you change the compiler option to Arith(extend) you can
use max 31 digits..
This is one of the famous interview question now a days.
Say i want to declare a variable with PIC 9(20) is it
possible?
People who doesn't know Arith(extend) compiler option they
will say it's not possible to declare a variable with PIC 9
(20) keeping 18 digits in mind. This is how it is.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More COBOL Interview Questions

How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree

3 Answers   Merrill Lynch,


what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?

2 Answers   Satyam,


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

0 Answers  


how can we fetch 3 records in cobol pgm any coding pls ?

3 Answers   CGI,


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

0 Answers  






why we are using set in searchall?

4 Answers   IBM,


what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,


Define in-line perform?

1 Answers  


what is sync clause?

2 Answers   DELL,


can we display comp-3 variables. if we want to display what we have to do . give me one example

6 Answers   CGI, Deloitte,


In COBOL programming, what is PERFORM? What is VARYING?

0 Answers   CDC,


Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.

12 Answers  


Categories