compare date

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
white-shadow
Member
Posts: 7
Joined: Wed Jun 30, 2010 10:14 pm

compare date

Post by white-shadow » Sat Jul 17, 2010 10:39 am

hi,
how i can compare two dates taken from the system and calculate the no. of daz.

thax in advance

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Sun Jul 18, 2010 12:41 am

What do you mean by "Two dates taken from system"? I mean, system date would only be one for a given day!
Last edited by Anuj Dhawan on Sat Jul 24, 2010 6:35 pm, edited 1 time in total.
Regards,
Anuj

white-shadow
Member
Posts: 7
Joined: Wed Jun 30, 2010 10:14 pm

Post by white-shadow » Sun Jul 18, 2010 1:06 am

its two different dates taken from the system in two different days. anywaz i got the solution. i think it can be done using FUNCTION INTEGER-OF-DATE.
thanx for ur concern.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon Jul 19, 2010 5:25 pm

Glad to hear that you get the solution.
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others