In a COBOL program, you need to store a date of birth. Which data type should you use to ensure compatibility with international date formats?

  • PIC 9(8)
  • PIC 9(8) COMP-3
  • PIC X(10)
  • PIC X(8)
The PIC X(10) data type in COBOL is suitable for storing a date of birth while ensuring compatibility with international date formats. It allows for the representation of date values in a text format without imposing a specific internal structure.
Add your answer
Loading...

Leave a comment

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