EZT+ Date manipulation - How do I subtract 30 days sysdate

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
Posts: 1
Joined: Sun Apr 24, 2011 3:37 am

EZT+ Date manipulation - How do I subtract 30 days sysdate

Post by anjanab » Sun Apr 24, 2011 5:13 am

How doI get the sys date - 30 days? I am tyring use an ezt+ program to calcuate averaged for data that is only 30 days old. SO I need to know the date for 30s day ago and then compare YYMMDD to it to see if the record qualifies to be included in the average calculation.

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

Post by Anuj Dhawan » Wed May 25, 2011 5:42 pm

I'm not very good with EZT but you can do it with built-in function of SORT on COBOL, too.

User avatar
Posts: 3
Joined: Fri Sep 30, 2011 9:41 am

Post by mfrmfem » Fri Nov 04, 2011 12:40 pm

Addition,Subtraction to any date can be done by using DATECALC macros in Ezt.

Post Reply


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.
Mainframe Interview questions

Other References
Mainframe Tools and others