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
What is the difference between perform … with test after and perform … with test before?
Write the code to count the sum of n natural numbers.
What are different data types in cobol?
When is inspect verb is used in cobol?
what happens if parmparameter passes zero bytes to the program
Define cobol?
What is the utilization of copybook in cobol?
What the difference is between continue and next sentence?
What is static and dynamic call in cobol?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is comp-1 and comp-2?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Explain the configuration section of a cobol program with examples of syntax.
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning