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


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol?

650


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

558


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

695


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

667


What type of SDLC u followed? Why?

1514






Why occurs cannot be used in 01 level in COBOL?

707


Explain what you understand by passing by value.

688


Which Search verb is equivalent to PERFORM…VARYING?

677


) How do u handle errors in BMS macro

1500


Explain about different table spaces.

642


What are the various section in data division and briefly explain them.

687


How to know whether the module is dynamical or statistical?

650


What is static and dynamic call in cobol?

588


What is inspect in cobol ?

793


Give some examples of command terminators?

749