how many bytes does s9(7)COMP-3 field occupies?
Answers were Sorted based on User's Feedback
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 |
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 |
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What guidelines should be followed to write a structured Cobol program?
what are the limitations of Inline Perform?
Can we call a CICS program from a batch program or viceversa?If so, how?
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
i need a small 3d program using inline and outline.
what is sync clause?
i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.
can we use reference modification an arry.
what is the meaning of pic 9(09)v99-
What is the size of s9(19)comp3? explain