Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP files from Server to Mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP files from Server to Mainframe
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

Moderator Team Head


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

PostPosted: Wed Mar 05, 2008 7:10 pm    Post subject: Reply to: FTP files from Window's Server to Mainframe
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    Post subject:
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    Post subject: FTP files from Server to Mainframe
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

Moderator Team Head


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

PostPosted: Thu Mar 27, 2008 5:09 pm    Post subject: Reply to: FTP files from Server to Mainframe
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    Post subject: FTP files from Server to Mainframe
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Liberty Angel Server using RACF Keyring martin9 CICS 0 Tue May 02, 2017 5:49 pm
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us