What is the maximum length of a field you can define using
COMP-3?
Answer Posted / smita padhy
The maximum length of a computational item is 18 decimal
digits, except
for a PACKED-DECIMAL item. If the ARITH(COMPAT) compiler
option is in
effect, then the maximum length of a PACKED-DECIMAL item is
18 decimal
digits. If the ARITH(EXTEND) compiler option is in effect,
then the
maximum length of a PACKED-DECIMAL item is 31 decimal
digits.
Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
In COBOL, what is the different between index and subscript?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
how do you reference the variable block file formats from cobol programs
HOw can I get the negative sign while deduct high value from low value
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Mention the guidelines to write a structured cobol program?
What is the usage of comp fields in cobol?
How do you reference the fixed block file formats from cobol programs
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What are the different rules to perform a Search?
Can we redefine the field of x(200) to less than 200?
How can you get the ksds file records into your cobol program?
What are all the divisions of a COBOL program?