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 the difference is between continue and next sentence?
Which Search verb is equivalent to PERFORM…VARYING?
What are various search techniques in cobol? Explain.
How do you get the data to code the BMS macro?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the LINKAGE SECTION used in COBOL?
how do you define single dimensional array and multidimensional array in your cobol?
What is Pic 9v99 Indicates in COBOL?
What is rmode(24)
What are the different data types in cobol?
How to print 10 to 1 if the input have only 10 digit number?
what is search and searchall?what is the diffrence between them?give an best example?
Write the code to count the sum of n natural numbers.