What is the maximum data length for Numeric DataType ?
Answers were Sorted based on User's Feedback
Answer / g.naveen
18 is Maximum Data length for Numeric Data Type.
| Is This Answer Correct ? | 24 Yes | 0 No |
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 |
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 |
wht is the difference between goto and perform stmts
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Differentiate between structured cobol programming and object-oriented cobol programming.
What guidelines should be followed to write a structured cobol prgm?
how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0
how to transfer the file from pc to mainframe??
if we have a 10 steps how to override the 4th step in jcl?
i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?
How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.
Minimum how many Number of Paragraphs are there in ID- Divison?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
How many sections are there in data division?.