Just started on the mainframe

Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

Just started on the mainframe

Postby joshua » Tue Aug 23, 2016 12:49 am

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.
Posts: 1
Joined: Tue Aug 23, 2016 12:32 am
Has thanked: 0 time
Been thanked: 0 time

Re: Just started on the mainframe

Postby Robert Sample » Tue Aug 23, 2016 1:17 am

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.
Robert Sample
Global moderator
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Just started on the mainframe

Postby Akatsukami » Tue Aug 23, 2016 3:17 am

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Global moderator
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Return to All other Mainframe Topics


  • Related topics
    Last post