Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
Quote:
Can anyone please provide the JCL?
Absolutely not, because it depends at least in part upon what you have at your site. For example, if your site uses CA-7, you could set up FTP PUT command to include ErrorReport.MMDDYYYY.txt as a CARPROC and allow CA-7 to set the date each day. If you do not run CA-7 at your site, however, that would not be a viable soution. If your site runs SAS, you could use SAS to create the FTP commands with the appropriate date, then run FTP using the SAS output as your command file. If your site does not run SAS, however, that would not be a viable solution. Or you could always write a program in the language of your choice to generate the FTP commands with the appropriate date.
In other words, you need to talk to your site support group, co-workers, team leader to find out what is available AT YOUR SITE to accomplish what you want to do. Nobody on this forum works at your site, so any advice you get from here is most likely useless since it may well depend upon something not available at your site.
And note that I am assuming your name ErrorReport.MMDDYYYY.txt is what you want on the receiving site -- that name is complete nonsense on a z/OS system unless you create a Unix System Services file with that name.