DM4/ for Previous Day

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

Moderators: Frank Yaeger, Moderator Group

Post Reply
maragatham
Member
Posts: 2
Joined: Tue Jun 18, 2013 10:42 am

DM4/ for Previous Day

Post by maragatham » Thu Jul 11, 2013 1:05 pm

Hi,

I am generating a report through JCL and the Report is to get the statistics of the previous day.

I have used DM4/ to get the current date. But could you please advise me on how to get a previous day value from DM4?

My Input File is as below:
================================
Statistics for DD/MM/CCYY
================================

My code is as below:

SORT FIELDS=COPY
INREC IFTHEN=(WHEN=(1,1,CH,NE,C'S'),BUILD=(1,180)),
IFTHEN=(WHEN=(1,1,CH,EQ,C'S'),
BUILD=(1,15,X,DATE=(DM4/)))



I use ICETOOL and the code above replaces DD/MM/CCYY with current date. But I would like to see the previous date.


Please advise.

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