Question:

Date Difference in COBOL. TYTK8

by Guest8953  |  12 years, 7 month(s) ago

0 LIKES UnLike

TYTK8

 Tags: cobol, date, difference

   Report

1 ANSWERS

  1. Jesica ethan
    Hi there.
    If you have a Cobol 1989 based compiler it will do day differences using the FUNCTIONs that support date maniplulation.  There are several of these based on the format of the date you are working with. If you are using a Gregorian calendar date(YYYYMMDD):
    Display "days Difference between:" begin-date " and " end-date " is: "
    (Function Integer-of-date(end-date) - Function Integer-of-date(begin-date) ) " days."
    End-Display
    will display the difference for you.
    Thanks

Sign In or Sign Up now to answser this question!

Question Stats

Latest activity: 14 years, 8 month(s) ago.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions