Re: FTP from Mainframe to Unix to create a dynamic file name on the Unix
- From: Michael Russell <Michael.Russell@xxxxxxx>
- Date: Mon, 16 Apr 2007 17:30:59 +0100
Top post:
Use an 'expect' script after establishing the month to be used.
Michael
Mani wrote:
Hi all experts,.
I have a situation where I need to FTP a file name say A.B.C.D to the
unix But however on the unix side, they want the file name to be as
file_created_in_Jan2007.txt if we ftp it in January and the file name
to be File_created_in_Feb2007.txt if the job runs in feb and so on.
The current solution I have is - to put multiple FTP steps with #JI,
bD=07001,ED=07031 and multiple steps like that so that each step
executes in the corresponding date range only. The obvious
disadvantage here is the monthly maintenance.
Does anybody know of a single step that will change the file names
dynamically on the PUT command (utility)., Of course the other obvious
choice is to change the PUT command filename by reading it through a
COBOL or easytrieve program AND changing the put command itself.
Any other interesting thoughts?
Thanks in advance
Mani
- Follow-Ups:
- References:
- Prev by Date: Re: FTP from Mainframe to Unix to create a dynamic file name on the Unix
- Next by Date: Re: The Future
- Previous by thread: Re: FTP from Mainframe to Unix to create a dynamic file name on the Unix
- Next by thread: Re: FTP from Mainframe to Unix to create a dynamic file name on the Unix
- Index(es):
Relevant Pages
|