What are the type of comp usage?

COMP Usage is used for data items of numeric type. There are 4 types of COMP usage.
1.COMP : Used only for integers.Either half word or full word .
2.COMP -1 :Used for floating points.Internal representation is hexa decimal.full word is used.No PIC Clause .
3.COMP -2 : Similar to COMP-1.Only difference is double word(8 bytes )is used
4.COMP -3 :Interenal representation is decimal.Each character is assinged to half byte.The sign bit is assinged to right most bit. The no.of bytes required for n characters is (n/2) + 1 (rounding down)

COMP - Half word - s9(01) to s9(04) takes 2 bytes for storage

Full Word - S9(05) to S9(08) takes 4 bytes of storage

Double word S9(09) - s9(18) takes 8 bytes.