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

Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.

3 Answers   iGate,


Hi All, Can anyone tell me how we can MOVE value of a X(19) variable to a S9(17) COMP-3 variable? Answer with an Example will be of great help.

6 Answers   EDS,


can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.

10 Answers   IBM,


How will you find the currepted records in a file

2 Answers  


I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.

1 Answers  






For rewrite, why is it mandatory that file needs to be opened?

0 Answers  


BY seeing a program how can we say that it is static call or dynamic call

5 Answers   CGI,


copy 100 records without using ibm utilities

3 Answers  


what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?

1 Answers   HCL,


what are the error codes in cobol, db2, cics, vsam , and jcl

2 Answers   TetraSoft,


What does the IS NUMERIC clause establish ?

2 Answers  


consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

5 Answers   TCS,


Categories