Page 1 of 1

FTP mainframe file to server

PostPosted: Thu Dec 09, 2010 12:02 am
by bperkows
Is there a way to FTP a file from the mainframe to a server and include the current date as a part of the server file name. I have accomplished this on other platforms, but not from the mainframe.

Any advice is appreciated.

Re: FTP mainframe file to server

PostPosted: Thu Dec 09, 2010 12:06 am
by Robert Sample
Sure -- have a process (in Unix, or a programming language, or REXX, or ...) create the FTP commands (including the date) in one step, then the next step will be the FTP executing the commands created in the previous step.

Re: FTP mainframe file to server

PostPosted: Thu Dec 09, 2010 12:11 am
by bperkows
Thanks for your response. I did find something like that and I am checking it, now. Again,
thanks.

Re: FTP mainframe file to server

PostPosted: Thu Dec 09, 2010 12:14 am
by steve-myers
Mr. Sample's solution is the way to do it. The FTP command on the mainframe would be

PUT mainframe-dataset-name server-file-name

where you would incorporate today's date in the server-file-name string.

Re: FTP mainframe file to server

PostPosted: Thu Dec 09, 2010 12:20 am
by bperkows
Thanks, Steve.