View previous topic :: View next topic |
Author |
Message |
shakkia Beginner
Joined: 05 Apr 2006 Posts: 9 Topics: 3 Location: India
|
Posted: Thu Apr 06, 2006 6:28 am Post subject: FTP - dynamic output file name |
|
|
Hi,
I have a situation as follows.
background:
I recieve two files from a vendor on a daily basis , not together and from different locations at different times. I use a single program to process these, ftp the processed files to a windows server and update SQL database. This job is set to be triggered on the creation of these files ( as GDGs).
Current Scene:
I need to now FTP these files additonally to another windows server, to be picked up by another vendor application. The vendor cannot handle if I append the two feeds into a single file. I cannot use SUNIQUE option(which is used to create file name variants) as windows FTP does not recogonise this command.
Does any of you have any other approach of dynamically naming the FTPed file? or split this file at the windows end, usig a BAT code?
Thanks
SBA _________________ SBA |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Apr 06, 2006 7:08 am Post subject: |
|
|
Use a program (or utility) to create the FTP commands to create filenames that you desire. Make sure you include the output of that program in your FTP process. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
shakkia Beginner
Joined: 05 Apr 2006 Posts: 9 Topics: 3 Location: India
|
Posted: Mon Apr 10, 2006 1:08 am Post subject: |
|
|
Hi Kolusu,
Thank you very much. I could resolve the problem using EZACFSM1.
I searched for previous posts on ftp, but didn't find this one.
Sorry for posting similar question.
Thanks
Shakkina _________________ SBA |
|
Back to top |
|
|
RajSanj Beginner
Joined: 17 Mar 2006 Posts: 15 Topics: 7
|
Posted: Tue Apr 11, 2006 9:51 am Post subject: Similar Situation |
|
|
Hi Kolusu,
The query that I have is somewhat similar, Will it be possible for me to get the file size when the server is doing FTP to the mainframe. I want to FTP the data either to DASD or Tape based on the file size. Please suggest.
Regards,
RajSanj |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Apr 11, 2006 3:12 pm Post subject: |
|
|
Sounds like it should be pretty straight-forward if the application that generates the file can track the size and make that decision. Otherwise, using the filesize from a directory listing, you're going to have to accomodate all of the methods of stating filesizes (bytes, KB, MB, GB, TB) in your calculation. |
|
Back to top |
|
|
|
|