Accessing Remote Files

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
DKostelnik
Participant
Posts: 34
Joined: Tue Jan 30, 2007 6:13 pm
Location: Central Florida

Accessing Remote Files

Post by DKostelnik »

Hi,
We are running DataStage v7.5.2 on an AIX v5.3 platform. The development staff has a new requirement to read remote files (I do not know the details). In doing some research it looks like I can either
1) Use NFS to map a remote file system and have DataStage access the file as if were local.
2) FTP the data/file to the loca DataStage filesystem.

Is there another possibility? They were looking at possibly defining the configuation file to include a remote directory, but I don't see where that will work.
Doug
AAA Auto Club Group
Listen to:
Porcupine Tree
Nosound
Days Between Stations
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use of the FTP Stage as a source is your only other option I can think of, with all the normal caveats it brings being metadata-driven and all.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSUser2000
Participant
Posts: 42
Joined: Tue Oct 20, 2009 8:36 am

Post by DSUser2000 »

You may also use the "External File" stage. Under "Source Program" you can enter a shell script. Each line this shell script outputs becomes a datastage row. You will probably want to use the "Column Import" stage after that to get the fields out of each row.
Post Reply