IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP files from Server to Mainframe


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ihatesugar
Warnings : 1

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Wed Mar 05, 2008 6:59 pm
Reply with quote

Hi,

I have a requirement in which i need to pick up the files from a Folder & FTP to Mainframe. The files names have be picked up based on the timestamp. The customer would be sending the files suffixed with TIMESTAMP. The catch is the timestamp is not available for the Mainframe Job to pick this file, so i do not have the complete filename to FTP from Server to Mainframe.

We need to get into the folder and search for the latest files avaiable , say all the files for the day and send it to mainframe environment.

Please let me know if this can be achieved.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Mar 05, 2008 7:10 pm
Reply with quote

I see only three choices:

1. Everytime you connect to that FTP server, pull a directory listing, read the contents, compare against a known list of what files have already been processed, and build the statements to retrieve the new files.

2. This is how we used to have to do it. Pull all of the files everytime. Then, compare each dataset at your end against all of the other datasets you already have and discard any that are the same, keeping only those that you don't already have.

3. Whenever you pull a file, delete it from their server, if they provide DELETE authority. That'll prevent you from constantly pulling duplicate files.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Mar 06, 2008 12:26 am
Reply with quote

Quote:
3. Whenever you pull a file, delete it from their server

Instead of doing delete - you can do RENAME the file to some other name and leave it in the server.
Back to top
View user's profile Send private message
sandeepc_savithri

New User


Joined: 25 May 2007
Posts: 10
Location: chennai

PostPosted: Thu Mar 27, 2008 5:02 pm
Reply with quote

Hi superk
We have a exact similar requirement where we have to pull a directory listing from Secured File Server but the problem i am facing is the output file contains all the commands and other details then the File names are appended.
i have coded a Rexx program to take out this
would like to is there any otpion FTP program to get only the File names
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Mar 27, 2008 5:09 pm
Reply with quote

See this previous topic, as well as the documentation for the DIr Subcommand and the LS Subcommand.
Back to top
View user's profile Send private message
sandeepc_savithri

New User


Joined: 25 May 2007
Posts: 10
Location: chennai

PostPosted: Mon Mar 31, 2008 1:50 pm
Reply with quote

Thank you for the help
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top