Which COBOL data type is appropriate for representing fixed-point decimal numbers?

  • PIC 9(5)V9(2)
  • PIC S9(5)V9(2)
  • PIC S9(5)V9(2) COMP
  • PIC S9(5)V9(2) COMP-3
The data type PIC S9(5)V9(2) COMP-3 in COBOL is used to represent fixed-point decimal numbers. The COMP-3, or packed decimal, format is suitable for efficient storage of decimal data, with each digit represented by half a byte.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *