To Print Current Date in SYSOUT

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
maddy.reddy
Member
Posts: 1
Joined: Mon Dec 13, 2010 10:10 pm

To Print Current Date in SYSOUT

Post by maddy.reddy » Tue Dec 14, 2010 11:46 pm

Hi All,

Could any one let me know 'How we can Print the Current Date in SYSOUT only through JCL step'...Are there any utilities through which we can achieve this.


Thanks in Advance:)

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Wed Dec 15, 2010 1:01 am

You could just use the MVS System Symbol Translator utility:

Code: Select all

//STEP0001 EXEC PGM=EZACFSM1
//SYSIN    DD   *
&LYR4 &LMON &LDAY &LYYMMDD &LWDAY &LJDAY
/*
//SYSOUT   DD   SYSOUT=*
and combine the dynamic system symbols any way you desire.

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed Dec 15, 2010 1:25 pm

MrSpock,

thx for the link...
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

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

Post by Anuj Dhawan » Tue Dec 28, 2010 3:01 pm

maddy.reddy - I usually use EZACFSM1 as MrSpck haas suggested. However, you can alos use SORT also. You have not told about the format of the date also...
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