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 do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pic x(5).

2 Answers   DELL, Mind Tree,


Which mode is used to operate the sequential file?

0 Answers  


given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.

2 Answers   TCS,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


can we read records in a file from botom to top. if possible how can we read

12 Answers   ACS,






How does IDMS insure data integrity?

1 Answers  


What is the LINKAGE SECTION used in COBOL?

0 Answers   UGC Corporation,


What is amode(24)?

0 Answers  


How do you come out of an EVALUATE statement?

3 Answers  


If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....

1 Answers   HCL,


Can the OCCURS clause be at the 01 level?

2 Answers  


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

0 Answers  


Categories