Page 1 of 1

Just started on the mainframe

PostPosted: Tue Aug 23, 2016 12:49 am
by joshua
Let me start by stating that I have just started working on the mainframe and have no experience.
I have a jcl that has this line:
put 'xxxxx.xxxxx.xxxxxxxx(0)' <filename>.txt
this is than sent out via ftp
I wopuld like to add the date time to the end of the txt file something like this
put 'xxxxx.xxxxx.xxxxxxxx(0)' <filename>_yymmdd_hhmmss.txt
Is this possible within the jcl without using rexx or the like?

Please do not use acronyms in your answers as I wont understand them and it will just lead to me being more confused.
Thank you for your time and consideration.

Re: Just started on the mainframe

PostPosted: Tue Aug 23, 2016 1:17 am
by Robert Sample
Moved from Forum Rules to All Other Mainframe Topics.

If you are using a job scheduler, they typically have date manipulation routines available. If you are not using a job scheduler, then unless you use a program (REXX, SAS, COBOL, or whatever) what you want to do cannot be achieved easily as JCL does not support date manipulation.

Re: Just started on the mainframe

PostPosted: Tue Aug 23, 2016 3:17 am
by Akatsukami
Incidentally, PUT is not a JCL operator. As you are new to the mainframe, this is an excellent time to learn that control cards are not JCL.