What is the maximum data length for Numeric DataType ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different rules for performing sort operation?

761


What are the different rules to perform a Search?

617


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

676


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

631






Define cobol?

862


How do we get current date from system with century in COBOL?

805


What is rmode(24)

678


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

708


Write a program that uses move corresponding.

673


IF I mention stop run in CICS what happens?

1896


When is inspect verb is used in cobol?

675


What guidelines should be followed to write a structured cobol prgm?

673


how do you reference the variable unblock file formats from cobol programs

748


Can we change the password using ALTER? anyone tried and changed?

1547