FTP files from UNIX server to 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
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

FTP files from UNIX server to DataStage server

Post by srai »

Hi All,

I have a requirement to FTP a set of csv files from SFTP server to DataStage server.

Requirement detail is below-

When DataStage job lunched-
1) DataStage job should check for complete set of csv file. Each set of files will be named with prefix of 'YYYYMMDD_ as follow

a)YYYYMMDD_file1
b)YYYYMMDD_file2
c)YYYYMMDD_file3

And if completed set of file present , proceed, otherwise check at a 5 minute interval to check whether a complete set of files exixts. If job run for 60 minutes and complete set of file not present, Job should terminate.
After identifying complete set files for processing file should be copied to DataStage server via SFTP from ftp server.

Thanks in advance,
Santosh.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How would you do this without DataStage? You use precisely the same means when DataStage is in the mix.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

Post by srai »

ray.wurlod wrote:How would you do this without DataStage? You use precisely the same means when DataStage is in the mix. ...

Hi Ray,

I just wanted to know how to implement it using DataStage?


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

Post by ray.wurlod »

Invoke the script that you would use if you didn't have DataStage, probably using Execute Command activity in a sequence or a before-job subroutine invoking ExecSH.

There is nothing in DataStage itself that does what you require. The FTP stage does have before/after ("telnet") commands, but no real capacity to wait in the way that you envisage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply