You are working on a COBOL program that calculates the age of a person based on their date of birth. Which COBOL function or technique would you use to perform this calculation?

  • AGE function
  • Arithmetic operations with date fields
  • DATE-OF-BIRTH function
  • Reference modification with date fields
In COBOL, you would typically perform age calculation using arithmetic operations with date fields. By subtracting the birthdate from the current date, you can obtain the age of the person.
Add your answer
Loading...

Leave a comment

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