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

Why is it necessary that file needs to be opened in I-O mode for REWRITE?

0 Answers  


What guidelines should be followed to write a structured Cobol program?

1 Answers  


what are the limitations of Inline Perform?

3 Answers   Zensar,


Can we call a CICS program from a batch program or viceversa?If so, how?

3 Answers  


what is S04E error in jcl?

11 Answers   IBM, L&T,






i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

0 Answers  


i need a small 3d program using inline and outline.

0 Answers  


what is sync clause?

2 Answers   DELL,


i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.

2 Answers   Wipro,


can we use reference modification an arry.

1 Answers  


what is the meaning of pic 9(09)v99-

4 Answers   HSBC,


What is the size of s9(19)comp3? explain

8 Answers  


Categories