how many bytes does s9(7)COMP-3 field occupies?

Answers were Sorted based on User's Feedback



how many bytes does s9(7)COMP-3 field occupies?..

Answer / sdexcellent@yahoo.co.in

4 bytes.

Is This Answer Correct ?    29 Yes 0 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / kiran

it uses (n+1)/2 formula. s0 (7+1)/2 =4 bytes.

Is This Answer Correct ?    23 Yes 2 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / sekhar

s9(7)COMP-3
s occupius 1/2 bytes so 1/2+1/2(extra)=1 byte

1+7=8comp3
4 bytes

Is This Answer Correct ?    9 Yes 2 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / kavya

int(n/2)+1 here n=7 ,so 4 bytes will take

Is This Answer Correct ?    6 Yes 0 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / bhaskar r

4byets

Is This Answer Correct ?    5 Yes 1 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / vijayamala

s9(7)comp3

n=7 , (n+1)/2 = (7+1)/2 = 4.

4 bytes will be allocated for this numeric data item.

since comp3 is a packed decimal representation, each byte
can hold 2 data items. which means it 4 bytes can occupy 8
items. In which last item is left for sign digit. So
s9(4)comp3 will have 4bytes allocated & can hold 7 data
item and 1 sign digit in it.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More COBOL Interview Questions

1.What is the default print format in cobol?

5 Answers   HSBC,


in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......

2 Answers   IBM,


What is "Call by content" and "call by reference"?

4 Answers   ADP, Syntel,


) what is the difference between AID and HANDLE AID?

0 Answers   IBM,


how can u pass the values into db2 values from cobol ?

3 Answers   CTS,






With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?

4 Answers   IBM,


how do u link sub pgm to main pgm ?

2 Answers   TCS,


How we copy a program from production region to development region.What is the process & syntax ?

3 Answers   CTS,


how do you reference the ksds vsam file formats from cobol programs

0 Answers  


suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.

2 Answers   IBM,


plz any one tell clearly the justify right clause?

1 Answers  


when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible

1 Answers   Patni,


Categories