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 the utilization of copybook in cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What type of SDLC u followed? Why?
Why occurs cannot be used in 01 level in COBOL?
Explain what you understand by passing by value.
Which Search verb is equivalent to PERFORM…VARYING?
) How do u handle errors in BMS macro
Explain about different table spaces.
What are the various section in data division and briefly explain them.
How to know whether the module is dynamical or statistical?
What is static and dynamic call in cobol?
What is inspect in cobol ?
Give some examples of command terminators?