JCL current date

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
jvinoth
Member
Posts: 1
Joined: Mon Nov 07, 2011 6:15 pm

JCL current date

Post by jvinoth » Wed Apr 18, 2012 10:18 am

hi can anyone please tell me how to get the current date using jcl and append into the file.please tell me soon thanks..

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Wed Apr 18, 2012 12:21 pm

You cannot. JCL is not a programming language. You need a program to do what you want. The sort programs can do that - look in the sort part of the forum for any examples.
Regards
Nic

User avatar
Frank Yaeger
Moderator
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:

Post by Frank Yaeger » Wed Apr 18, 2012 9:32 pm

jvinoth,

You need to do a better job of explaining what exactly you want to do. Show an example of your input file and what you expect for output. Explain the rules for getting from input to output. ("Append into file" is too vague a description.)
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort

alijamal
Member
Posts: 4
Joined: Mon May 21, 2012 10:40 am

Post by alijamal » Mon May 21, 2012 1:20 pm

I have to FTP a file to server.
File name should be appended with current date.
Coupld you please let me know how we can do that in JCl.
mainframe application modernization
Last edited by alijamal on Sun Jun 24, 2012 6:44 pm, edited 1 time in total.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon May 21, 2012 5:38 pm

No - you have not started a new topic. Also, search in the ftp part of the forum. Oh, and try to read forum rules - generally you do not re-open old topics, tailgate someone elses topic, post in the wrong section and you look to see if your question has already been asked and answered by someone else at another time.
Regards
Nic

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