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


Please Help Members By Posting Answers For Below Questions

In COBOL, what is the different between index and subscript?

759


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.

1115


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

676


how do you reference the variable block file formats from cobol programs

686






HOw can I get the negative sign while deduct high value from low value

1790


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1846


Mention the guidelines to write a structured cobol program?

620


What is the usage of comp fields in cobol?

660


How do you reference the fixed block file formats from cobol programs

705


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?

6831


What are the different rules to perform a Search?

619


Can we redefine the field of x(200) to less than 200?

820


How can you get the ksds file records into your cobol program?

644


What are all the divisions of a COBOL program?

665