FTP into Datastage Server

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Bram
Participant
Posts: 35
Joined: Mon Dec 27, 2004 11:40 am

FTP into Datastage Server

Post by Bram »

Hi There,


Is there any automatic way of doing FTP CSV file into Datastage server every week?


Thanks in advance,
Bram
vans2003
Participant
Posts: 11
Joined: Thu Jan 27, 2005 10:38 am

Post by vans2003 »

Use FTP Stage to transfer the files from one server to another

You can schedule a job in Datastage director to run weekly...
--Vans
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure. :wink:

Create a shell script to use FTP to get the files you need and run it once a week - either through cron or an enterprise scheduler or as a 'before job' option on a DataStage job that would process them after they arrive.

Or have them ftp'd to your server and use the Wait For File activity in a Sequencer job to poll for them.

Quite a number of different ways to accomplish it, depending on your requirements.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Please note that you need to have network connection between the 2 machines. Also check the user and their default ftp root directory.
sun786
Participant
Posts: 34
Joined: Mon Feb 07, 2005 5:48 am

Post by sun786 »

I think the better way is to write a shell script to FTP the file from source server to the DS server, use that shell as Before job shell. Then schedule the job. You will get the file when ever you run the job.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

But that is exactly what the FTP stage is for.
Post Reply