Question:

Date Difference in COBOL. TYTK8

by Guest10909429  |  2 years, 9 month(s) ago

0 LIKES UnLike

TYTK8

 Tags: cobol, date, difference

   Report

1 ANSWERS

  1. Sagitarion
    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

Question Stats

Latest activity: 2 years, 9 month(s) ago.
This question has been viewed 278 times and has 1 answers.

1 User is following this question

Jonny Bravo

BECOME A GUIDE

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