What is the maximum length of a field you can define using
COMP-3?

Answers were Sorted based on User's Feedback



What is the maximum length of a field you can define using COMP-3?..

Answer / elite group

S9(18) Comp-3

Is This Answer Correct ?    42 Yes 9 No

What is the maximum length of a field you can define using COMP-3?..

Answer / 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

What is the maximum length of a field you can define using COMP-3?..

Answer / nihar ranjan karan

If you use the compiler option ARITH(EXTEND) then you can
have a maximum of 31 digits.

Look up the compiler option ARITH in manual... you will get
some more info also...

Is This Answer Correct ?    9 Yes 3 No

What is the maximum length of a field you can define using COMP-3?..

Answer / vivek ar

The first answr is correct .It is indeeed 10

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More COBOL Interview Questions

How do define Dymanic array in cobol how do u define single demensional arry and multidymensional arry in ur cobol.

4 Answers   Cap Gemini,


In a program, variables are used but no DB2 involved in it. Can you call it as host variables??

4 Answers   EDS,


I want to declare a field with data type Double in my COBOL program. how shall i do that ?

5 Answers  


How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one

10 Answers   IBM,


wht do u mean by (*,intrdr) wht is * used for ?

2 Answers  






What is an in line PERFORM? When would you use it? Anything else to say about it?

4 Answers  


i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.

9 Answers   Syntel,


01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

11 Answers   FirstApex, NIIT,


What is the LINKAGE SECTION used for?

4 Answers  


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.

0 Answers   Steria,


Whats the use of Examine command? can someone help me?

1 Answers   IBM,


how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,


Categories