Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 4650
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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us