How do you perform date arithmetic in COBOL, such as adding or subtracting days from a date?

  • COBOL does not support date arithmetic
  • Use the ADD and SUBTRACT statements
  • Use the intrinsic function DATE-OF-INTEGER
  • Utilize the COMPUTE statement
In COBOL, you perform date arithmetic, such as adding or subtracting days from a date, by using the ADD and SUBTRACT statements. These statements allow you to manipulate date fields with ease.
Add your answer
Loading...

Leave a comment

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