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 is the difference between perform … with test after and perform … with test before?

1137


Write the code to count the sum of n natural numbers.

921


What are different data types in cobol?

905


When is inspect verb is used in cobol?

909


what happens if parmparameter passes zero bytes to the program

1864


Define cobol?

1065


What is the utilization of copybook in cobol?

872


What the difference is between continue and next sentence?

863


What is static and dynamic call in cobol?

779


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8661


What is comp-1 and comp-2?

929


i want a program using by if, evaluate , string, unstring, perform, occurs?

4337


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

896


Explain the configuration section of a cobol program with examples of syntax.

857


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

861