how many bytes does s9(7)COMP-3 field occupies?
Answer Posted / 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 View All Answers
What is rmode(any) ?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the local-storage section?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
) what is the difference between AID and HANDLE AID?
When is inspect verb is used in cobol?
What is length is cobol?
What type of SDLC u followed? Why?
What is the usage of comp fields in cobol?
Explain how to differentiate call by context by comparing it to other calls?
What do you understand by psb and acb?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Define static linking and dynamic linking.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What the difference is between continue and next sentence?