compare date DFSORT

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
bernix
Member
Posts: 21
Joined: Tue Oct 28, 2008 8:32 pm
Location: Vienna, Austria

compare date DFSORT

Post by bernix » Thu Oct 22, 2015 5:03 pm

hi all,

i need to compare a date value yyyy-mm-dd with december 31st of the year before last year. to be precise: today i use

IFTHEN=(WHEN=(WPTYP,EQ,C'Z',AND,DATUM,GE,C'2013-12-31'),
OVERLAY=(1:C'K')),

I want to amend the statement that if i run the job next year it will be compared with '2014-12-31'

any idea?

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