Suggestion on data load using FTP stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
hemaarvind1
Participant
Posts: 50
Joined: Mon Jan 21, 2008 9:35 am

Suggestion on data load using FTP stage

Post by hemaarvind1 »

Hi,

I have a URI which lists a set of Zip files. I want to move these ZIP files on to a folder in another unix server.

I want to use FTP stage by specifying URI as the source ,but I am not sure of which stage to use as target to move the zip files from URI to the unix folder.

Could you please suggest me the job flow for how to achieve this.

Thank You.
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

Any particular reason you chose to do this in DataStage?

Is it part of a Sequencer activity that needed coordination?

As for which stage to use, remember that a Command Sequencer can call any command line script you write, and can pass it your variable.

An External Source stage can do that also.

You could set up a script on your source or destination, and trigger that script remotely from your DataStage server or job.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The FTP stage is metadata driven, works record by record, and thus is not something you can use to transfer a zipped file.
-craig

"You can never have too many knives" -- Logan Nine Fingers
hemaarvind1
Participant
Posts: 50
Joined: Mon Jan 21, 2008 9:35 am

Post by hemaarvind1 »

Thank You Paul and Chulett for your responses.

Is there any way to transfer a Zip file in Datastage without going for a script?

I have chosen Datastage for this task as I have to do this as part of a Job Sequence.

Please let me know the options of achieving this.

Thank You.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You need a script. Use an Execute Command activity to execute the script.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
hemaarvind1
Participant
Posts: 50
Joined: Mon Jan 21, 2008 9:35 am

Post by hemaarvind1 »

Thank You Ray.
Post Reply