Calculate day difference in two dates in COBOL

Tags:
COBOL
I want to calculate day difference in two dates and that value I will use further in my COBOL code. So how do I do this? Thanks in advance.


Software/Hardware used:
db2 and cobol
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    Sounds like homework. Show us your code so far and we can point out any problem.
    135,305 pointsBadges:
    report
  • bvining
    I would recommend starting with the ILE COBOL Reference Manual which is available online. There is a wonderful section titled Intrinsic Functions where you might find Find-Duration especially helpful. 

    Reading the language documentation, rather than asking questions one-by-one, is a really good way to get ahead in your field.

    Bruce
    7,070 pointsBadges:
    report
  • TheRealRaven
    What COBOL are you using? What is the platform? What is the version/release level?
    36,340 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: